Selenium has a deleteallvisiblecookies construct that removes all cookies when tests run in the same domain.
For products that call access control, for example. usually the URL falls into the trap of the access manager product, and the user is redirected to another domain to log in, and then redirected back to the original URL, so the login is completed successfully, this does not work
According to Selenese documentation:
To delete a cookie, you need to delete it using the same path and domain that were used to create the cookie. If the path is incorrect or the domain is wrong, cookies simply will not be deleted.
It seems I cannot delete all cookies deleted in this multi-node environment.
We use Java and Selenium RC to run these tests - usually using Firefox, but some IE.
Does anyone have some sample Java code or some suggestions that I could use to solve this problem?
source
share