usage of top.location can screw up Selenium tests
If a web app has code to try and break out of an iframe, it will be difficult to test in Selenium.
A few months ago, we were testing a login page that had been fortified against robots. It uses code like this:
if (top.location != self.location)
{
top.location = self.location.href;
}
This breaks
Selenium
that loads the web app being tested in an IFRAME.
What do you do? Just try to get as much done in
JsUnit
tests as you can.