mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.03k stars 1.51k forks source link

Doesn't work correctly in Windows 10 #2037

Closed tellts closed 1 year ago

tellts commented 1 year ago

System

Testcase

from selenium import webdriver import time

driver = webdriver.Firefox(executable_path="C:\webdriver\geckodriver.exe")

time.sleep(5) driver.quit()

Stacktrace

Trace-level log

c:\parsing\bs\DynamicBS\dbs1_3.py:5: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Firefox(executable_path="C:\webdriver\geckodriver.exe")

I ask you to write a version of the browser with which the webdriver starts up and works fine.

emwitchcraft commented 1 year ago

lmao this has nothing to do with the webdriver not working and everything to do with you not using selenium correctly.

tellts commented 1 year ago

I found a portable version of the April Firefox release, that is, the one that was released when the webdriver release was published. As well as instructions on how to bind it to the webdriver in the context of path visibility. But just haven't tried it yet.

whimboo commented 1 year ago

As @emwitchcraft already said this is not an issue with geckodriver but the Selenium framework / binding that you are using. Please consult their documentation in how to do it right.