Selenium produces Delitalville cookies which removes all cookies, when Tests run on the same domain.
Products that are trapped by access control eg a URL access manager product, and the user is taken to a different domain to log-in and then returned to the original URL, Login is successful, it does not seem to work.
According to the Selenus document:
To remove a cookie, you were used to make cookies Using the exact path and domain this Requires removal if the path is incorrect, or domain is wrong, then the cookie will not be removed.
I think this kind of multi-domain environment.
To run these tests we use Java and Selenium RC - usually using Firefox but some IE
Has anyone given some Java code samples or some suggestions that I can use to solve this?
I do not think you can do Java part of Selenium RC just by using Javascript Controlling which it generates. Everything in the browser is executed, so normal cross-domain rules apply.
The only thing that I can think of is creating some proxy page that looks like it is coming from the Access Manager domain and it's already a proxy in a delete "its" cookies, Selenium RC (This is how it works), possibly a way to add some fake pages in a proxy domain.
Comments
Post a Comment