YaK:: WebLog #535 Topic : 2007-07-25 07.29.15 matt : usage of top.location can screw up Selenium tests [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
  [Back to weblog: pretention]  
[mega_changes]
[photos]

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.

Discussion:

showing all 0 messages    

(No messages)

>
Post a new message:

   

(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2007-07-25)       [Login]
(No back references.)