Closed Danp2 closed 1 year ago
_WD_Shutdown
is a wrapper for __WD_CloseDriver
, which is where all the action takes place.
A quick "fix" is to insert a short 2 second pause in _WD_Shutdown
to allow the webdriver console to complete any post processing before passing control to __WD_CloseDriver
.
The Chromium based webdrivers all support a /shutdown
endpoint that can be called to gracefully exit the console.
The /shutdown
endpoint won't be added to the W3C standards and won't be added to geckodriver, so I'm inclined to avoid using this endpoint.
Bug report
Describe the bug
Directories related to temporary profiles aren't being deleted automatically.
https://www.autoitscript.com/forum/topic/209877-webdriver-is-not-deleting-the-folder-named-scoped_-at-the-end-of-the-execution-with-edge-browser/?tab=comments#comment-1515043
How to reproduce
Call _WD_Shutdown immediately after calling _WD_DeleteSession
Expected behavior
Temporary directories to be automatically deleted.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
System under test
Please complete the following information.