I'm writing Selenium tests for an ASP application, and would like to test the cases when a session isn't properly initialized. Right now I'm clearing the cookies manually, but that is becoming a bit cumbersome.
(ok, to be honest I forget it every fifth-or-so time and have to re-run the tests...)
Is there a way in Selenium IDE to clear session cookies or fake a browser re-start?
Found it myself, when I stopped thinking in terms of clear and tried delete:
I've found it most useful to simply begin all tests with a call to my logout page, and on that page purposely expire any sessions the user may have.
deleteAllVisibleCookies
and put the site url in target
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With