Can't open browser with Selenium after Firefox update

后端 未结 7 2158
广开言路
广开言路 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:04

    FIXED: Solution at this time is to downgrade Firefox! run this command to get a list of available Firefox versions.

    apt-cache show firefox | grep Version
    

    My Result:

    Version: 47.0+build3-0ubuntu0.16.04.1
    Version: 45.0.2+build1-0ubuntu1
    

    Install:

    sudo apt-get install firefox=45.0.2+build1-0ubuntu1
    

    To keep this version and disallow updates:

    sudo apt-mark hold firefox
    

    If you want to unhold firefox version and allow updates:

    sudo apt-mark unhold firefox
    sudo apt-get upgrade
    

提交回复
热议问题