WebDriverException: Message: The browser appears to have exited before we could connect error with GeckoDriver Selenium and Python

前端 未结 5 1866
时光取名叫无心
时光取名叫无心 2020-12-11 17:07

There are about 100 posts about the same issue but none of them seem to work for me, hence asking again. I\'m trying to launch a Firefox browser using Python and Selenium an

5条回答
  •  余生分开走
    2020-12-11 17:36

    binary = r'C:\Program Files\Mozilla Firefox\firefox.exe'
    options = Options()
    options.binary = binary
    browser = webdriver.Firefox(firefox_options=options, executable_path=r"C:\Drivers\geckodriver.exe")
    

提交回复
热议问题