Selenium hangs instantiating FirefoxDriver

前端 未结 5 1370
迷失自我
迷失自我 2021-02-18 15:12

I try to get started with selenium (downloaded the current version today) and copied their example which opens a browser and performs a google search.

However, the progr

相关标签:
5条回答
  • 2021-02-18 15:56

    Normally a new browser's hot - I was looking for a problem elsewhere. Webdriver or selenium server. http://d.pr/i/Q5Dt

    0 讨论(0)
  • 2021-02-18 16:07

    Firefox 13 support was added in Selenium 2.23. See http://code.google.com/p/selenium/source/browse/trunk/java/CHANGELOG

    0 讨论(0)
  • 2021-02-18 16:08

    Saw this behavior when trying to instantiate the webdriver on a headless CentOS server without display being set.

    Per https://serverfault.com/questions/363827/how-can-i-run-firefox-on-centos-with-no-display -- you can use Xvfb, which gives you an X server that doesn't require connection to a physical display

    0 讨论(0)
  • 2021-02-18 16:12

    I've been working OK with Firefox 18, but I just got auto-updated to 19 which seems to break the webdriver. Mozilla isn't prominent with the links to prior versions:

    https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/18.0b7/mac/en-US/

    0 讨论(0)
  • 2021-02-18 16:15

    These cases are usually when Firefox & Selenium are a little "out of sync" in terms of compatibility.

    You should try two things: update Selenium to the latest one and/or downgrade Firefox. Keeping an eye on the Selenium Release Notes

    0 讨论(0)
提交回复
热议问题