Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Selenium without GUI : Status code 64

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

like image 384
ortizbje Avatar asked Oct 27 '25 03:10

ortizbje


1 Answers

I'm not sure what the status code means, but try to update the Firefox webdriver. Updating the Firefox webdriver fixed it for me.

like image 153
AMasrar Avatar answered Oct 28 '25 16:10

AMasrar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!