'Selenium browser persists after a test is finished
I am using Firefox and the Selenium IDE plugin. I have a test for the login of my application. After the end of the test the browser stays logged in and the session gets reused. Can this be avoided ?
Solution 1:[1]
You need to invoke driver.quit()
method within the tearDown() {}
. Invoking quit()
DELETEs the current browsing session through sending "quit" command with {"flags":["eForceQuit"]} and finally sends the GET
request on /shutdown
EndPoint.
References
You can find a couple of relevant detailed discussions in:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | undetected Selenium |