Can't open browser with Selenium after Firefox update

后端 未结 7 2143
广开言路
广开言路 2020-11-22 10:54

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

Tra         


        
7条回答
  •  感动是毒
    2020-11-22 11:12

    1) Download geckodriver 0.6.2, unzip, rename to "wires" not "wires.exe" https://github.com/mozilla/geckodriver/releases

    2) Add the wires executable location to PATH (I put this in my python folder C:Program Files\Python...) Select Start, select Control Panel. double click System, and select the Advanced tab. Click Environment Variables. ... In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. ... (Use ';' to separate paths i.e. [C:Users\Reuben;C:Program Files\Python]

    3) Downgrade to Firefox 45 https://ftp.mozilla.org/pub/firefox/releases/45.0.2/win64/en-US/

提交回复
热议问题