mozilla / geckodriver

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

Cant change driver log location #2032

Closed Apacelus closed 2 years ago

Apacelus commented 2 years ago

System

Issue

Log still gets saved to main dir instead of the sub dir "./log"

Code

driver = webdriver.Firefox(log_path="./logs/driver.log", service=FirefoxService(GeckoDriverManager().install()))
whimboo commented 2 years ago

The class that you are using here is part of the Selenium code but not geckodriver. geckodriver itself just logs to stdout which is then piped in Selenium.

Apacelus commented 2 years ago

So how do I change the log location for it?

whimboo commented 2 years ago

You will have to consult the Selenium documentation, or file an issue over there in case there is no option available.