why I get this error using webdriver?

picen02HOBBY

a year ago

this is the code:
chromeOptions = webdriver.ChromeOptions()
chromeOptions.addargument("ignore-certificate-errors") chromeOptions.addargument('--headless=chrome')
wbe = webdriver.Chrome(options=chromeOptions)

and I get this error:
Traceback (most recent call last):
Mar 28 08:06:53
File "main.py", line 26, in
Mar 28 08:06:53
wbe = webdriver.Chrome(options=chromeOptions)
Mar 28 08:06:53
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
Mar 28 08:06:53
super().init(
Mar 28 08:06:53
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 50, in init
Mar 28 08:06:53
self.service.start()
Mar 28 08:06:53
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 102, in start
Mar 28 08:06:53
self.assertprocessstillrunning() Mar 28 08:06:53 File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 115, in assertprocessstillrunning
Mar 28 08:06:53
raise WebDriverException(f"Service {self.path} unexpectedly exited. Status code was: {returncode}")
Mar 28 08:06:53
selenium.common.exceptions.WebDriverException: Message: Service /root/.cache/selenium/chromedriver/linux64/123.0.6312.86/chromedriver unexpectedly exited. Status code was: 127

Solved

3 Replies

a year ago

I would highly recommend using browserless instead.

Browserless has a guide on how to use it with Selenium here -

https://www.browserless.io/docs/python


Status changed to Solved railway[bot] about 1 year ago


picen02HOBBY

a year ago

Isn't there a way to do this for free?


a year ago

Sorry, Railway is not free.


why I get this error using webdriver? - Railway Help Station