Selenium WebDriver can't load profile

后端 未结 1 925
南旧
南旧 2021-01-13 21:19

I try firing up Firefox using Selenium WebDriver and get the following error:

---------------------------------------------------------------------------
Web         


        
相关标签:
1条回答
  • 2021-01-13 21:39

    helped me to specify an explicit path to the binary file firefox

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