I'm trying to run Selenium in Headless mode in a Linux machine without GUI. The problem is that I'm getting a WebDriverException and I can't find anywhere what the status code 64 means.
Does anyone know where to find the status code definitions ?
Code :
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(1024, 768))
display.start()
path = '/home/workspace/geckodriver'
driver = webdriver.Firefox(executable_path=path, service_args=['--verbose', '--log-path=/tmp/firefox.log'])
# website testing functionality:
driver.get('https://python.org')
print(driver.title)
Error :
WebDriverException: Message: Service /home/workspace/geckodriver unexpectedly exited. Status code was: 64
I'm not sure what the status code means, but try to update the Firefox webdriver. Updating the Firefox webdriver fixed it for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With