Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16506

selenium.common.exceptions.WebDriverException: Message: Service /mnt/sdb1/firefox/firefox unexpectedly exited. Status code was: 0. Why?

$
0
0
geckdriver --version 0.33.0firefox 119.0python2.7 using selenium 3.141
from selenium import webdriverfrom selenium.webdriver.common.keys import Keysfrom selenium.webdriver.common.by import Bydriver = webdriver.Firefox(executable_path=r'/mnt/sdb1/firefox/firefox')driver.get("file:///mnt/sdb1/root/foo.html")assert "Python" in driver.title
<!DOCTYPE html><html> <head><title>Python<title/></head><body>    some text<label for="cars">Choose a car:</label><select name="cars" id="cars"><option value="volvo">Volvo</option><option value="saab">Saab</option><option value="mercedes">Mercedes</option><option value="audi">Audi</option></select></body></html>

When i run python foo.py the new firefox TAB opens up and geckodriver.log is created but contains nothing. The driver.get("file:///mnt/sdb1/root/foo.html") html page does not load within the new firefox TAB that was created.

Why does firefox unexpectedly exit?

(closing firefox completely and running the selenium-script causes firefox to start up from scratch and there is a pause before the script exits with

selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /mnt/sdb1/firefox/firefox )


Viewing all articles
Browse latest Browse all 16506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>