Share
Go down
tributesqa
Posts : 1
Join date : 2009-08-12

IDE and Iframes

on Wed Aug 12, 2009 1:54 am
So I am attempting to write
some scripts for our product people to use selenium IDE to test the web
flows. I am having issues with verification tasks due to the iframes on
the page I am testing. An example of a page I am having trouble with is
http://lakelawnmetairie.com/obituaries/tribute.html?url=http://stei-23818.tributes.com/show/Cynthia--Syndi--Theriot-86532213. I have tried selectWindow and selectFrame with various targets and values but to no avail.
I realize I can just load the iframe but I would like to get the full experience for the product team
Any help would be appreciated.Joshtributes.com
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: IDE and Iframes

on Wed Aug 12, 2009 2:14 pm
Hi,

I have done recording on your site with selenium IDE and when I run the script again it gives a following error:

Window does not exist. If this looks like a Selenium bug, make
sure to read http://selenium-core.openqa.org/reference.html#openWindow
for potential workarounds.


This is selenium bug but sometime it doesn't identify window or frame is closed but window is opened.

The workaround for this problem will be use the following command:
open(url)Arguments:

  • url - the URL to open; may be relative or absolute
Opens an URL in the test frame. This accepts both relative and absolute
URLs.

The "open" command waits for the page to load before proceeding,
ie. the "AndWait" suffix is implicit.

Note: The URL must be on the same domain as the runner HTML
due to security restrictions in the browser (Same Origin Policy). If you
need to open an URL on another domain, use the Selenium Server to start a
new browser session on that domain.

By this you have to reopen your page and take control back to same page where test stop.


I hope this will help u . Best Of luck.

Bye
Back to top
Permissions in this forum:
You cannot reply to topics in this forum