Webdriver Exception:Process unexpectedly closed with status: 1

I am using selenium 4.19.0, and Firefox as the webdriver with headless configuration. My code works perfectly fine in my local machine. However, When I deploy it to railway I get the following error: selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Solution:
Because Firefox is not installed in your container. I would highly recommend using browserless instead, simply deploy browserless into your project and then check out the example here https://www.browserless.io/docs/selenium-library This would also have the benefits of not needing to install Firefox or it's needed system dependencies making your build and publish times faster!...
Jump to solution
5 Replies
Percy
Percy8mo ago
Project ID: ca15a8b2-bbe5-4c66-b6d9-d7ee51bfe682
Hakan Kılıç
Hakan KılıçOP8mo ago
ca15a8b2-bbe5-4c66-b6d9-d7ee51bfe682
Solution
Brody
Brody8mo ago
Because Firefox is not installed in your container. I would highly recommend using browserless instead, simply deploy browserless into your project and then check out the example here https://www.browserless.io/docs/selenium-library This would also have the benefits of not needing to install Firefox or it's needed system dependencies making your build and publish times faster!
Hakan Kılıç
Hakan KılıçOP8mo ago
I don't want to use browserless since it's not free to use. How can I install firefox in railway?
Brody
Brody8mo ago
my recommendation was to run browserless on railway
Want results from more Discord servers?
Add your server