Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I use Selenium WebDriver on Ubuntu Desktop 16.04, and I can't open the browser. I get the following error after Firefox update (before this, it all worked):

Traceback (most recent call last):

  File "", line 6, in <module>

    driver = webdriver.Firefox()

  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/", line 81, in __init__

    self.binary, timeout)

  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/", line 51, in __init__

    self.binary.launch_browser(self.profile, timeout=timeout)

  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/", line 68, in launch_browser


  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/", line 98, in _wait_until_connectable

    raise WebDriverException("The browser appears to have exited "

selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.

1 Answer

0 votes
by (62.9k points)

Use this Java code:

DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", true); Webdriver driver = new FirefoxDriver(capabilities);

Hope this helps!

Browse Categories