title WebLog #535 Topic: 2007-07-25 07.29.15 matt: usage of top.location can screw up Selenium tests user matt ip 65.57.245.11 vol 1 lock ******** If a web app has code to try and break out of an iframe, it will be difficult to test in Selenium. /more A few months ago, we were testing a login page that had been fortified against robots. It uses code like this: /pre( if (top.location != self.location) { top.location = self.location.href; } /pre) This breaks /link http://openqa.org Selenium that loads the web app being tested in an IFRAME. What do you do? Just try to get as much done in /link http://jsunit.net JsUnit tests as you can. /dis