Can't open browser with Selenium after Firefox update

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

    Some people have the problem that some buttons or select boxes cannot be selected inmarionette modus.

    An alternative is using older firefox version:

    You can download the binary here and use it here:

    from selenium import webdriver
    from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
    
    binary = FirefoxBinary('path/to/binary')
    driver = webdriver.Firefox(firefox_binary=binary)
    
    0 讨论(0)
提交回复
热议问题