ERROR: Window does not exist.

7 views
Skip to first unread message

swenker

unread,
May 9, 2008, 12:36:44 PM5/9/08
to selenium-users...@googlegroups.com

Hi everyone,


I encounter this exception when navigate with frames; I have two groups of frameset:


This is the first frame group in index.html[]:


<frameset rows="90,*" border="0" framespacing="0" frameborder="0">
<frame name="banner" scrolling="no">
<frameset cols="180,*" frameborder="NO" border="0" framespacing="0">
<frame name="ezxap_menu" target="ezxap_mainFrame" src="product_menu.html" scrolling="auto">
<frame name="ezxap_mainFrame" src="" >
</frameset>
</frameset>


This is second frame group in load_home.html:

<frameset cols="180,*" frameborder="NO" border="0" framespacing="0">
<frame name="hierarchy_frm" target="contentfrm" noresize src="hierarchy.html" scrolling="auto">
<frame name="contentfrm" scrolling="auto" src="placeholder.html" target="_self">
</frameset>

The files are :
index.html
product_menu.html
load_home.html
hierarchy.html
placeholder.html
product_load.html


-
---------------------
but when I run the following code:


selenium.open("/mock/index.html");
selenium.selectFrame("ezxap_menu");
selenium.click("link=Load");//product_menu.html
selenium.waitForPageToLoad("5000");
selenium.selectFrame("relative=parent");
selenium.selectFrame("ezxap_mainFrame");
selenium.selectFrame("hierarchy_frm");


selenium.click("link=Integration List");//hierarchy.html,this line throws exception


Exception in thread "main" com.thoughtworks.selenium.SeleniumException: 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.
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:73)
at com.thoughtworks.selenium.DefaultSelenium.click(DefaultSelenium.java:82)
at org.ministone.lab.PopupUsageTest.visitMock(ProductTest.java:149) //selenium.click("link=Integration List");//hierarchy.html


I know this is a little boring,but will you be so kind to give me some tips about this?












Reply all
Reply to author
Forward
0 new messages