Closed srichards2103 closed 1 year ago
that's at https://github.com/kaliiiiiiiiii/Selenium-Driverless/blob/93cb59a6590bbe07e5ea727ec8ebed466b791fd6/src/selenium_driverless/webdriver.py#L428-L434
basically tries to kill the chrome by it's PID until there's an OSError
(=> nothing running on PID)
@srichards2103 Did the Browser-window close?
@kaliiiiiiiiii yeah the browser window closes, then it goes on to timeout after 30 seconds.
@srichards2103 Oh that's interesting. So maybe MacOs doesn't trow an OSError lol. https://stackoverflow.com/questions/13595076/why-does-os-killpid-0-return-none-although-process-has-terminated might be related
@kaliiiiiiiiii Just tried by changing os.kill
to os.killpg
as suggested in that thread. Seems to work no problem.
@kaliiiiiiiiii Just tried by changing
os.kill
toos.killpg
as suggested in that thread. Seems to work no problem.
@srichards2103 Thank's a lot for testing! I'll test if that works on Windows and Linux as well as expected & implement it.
@srichards2103
This should be resolved with selenium-driverless==1.6
Please close this issue if it's fixed now:)
TimeoutError on MacOS when quitting driver:
with this code: