2 years ago
this is the code:
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument("ignore-certificate-errors")
chromeOptions.add_argument('--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.assert_process_still_running()
Mar 28 08:06:53
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 115, in assert_process_still_running
Mar 28 08:06:53
raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
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
3 Replies
2 years ago
I would highly recommend using browserless instead.
Browserless has a guide on how to use it with Selenium here -
Status changed to Solved Railway • about 2 years ago
2 years ago
Isn't there a way to do this for free?