GekoDriver v 0.35.0 does not support Windows 7.
Replace this:
from selenium.webdriver import Firefox
options: Options = Options()
gecko_driver_manager: GeckoDriverManager = GeckoDriverManager()
driver_manager_path: str = gecko_driver_manager.install()
firefox_service: FirefoxService = FirefoxService(driver_manager_path)
driver: Firefox = Firefox(options=options, service=firefox_service)
With this:
from selenium.webdriver import Firefox
options: Options = Options()
gecko_driver_manager: GeckoDriverManager = GeckoDriverManager(version='v0.34.0')
driver_manager_path: str = gecko_driver_manager.install()
firefox_service: FirefoxService = FirefoxService(driver_manager_path)
driver: Firefox = Firefox(options=options, service=firefox_service)
No comments:
Post a Comment