Closing iFrame hangs webdriver

150 views
Skip to first unread message

RvD

unread,
Oct 30, 2012, 10:43:19 AM10/30/12
to seleniu...@googlegroups.com
selenium webdriver 2.25
java 1.7
Firefox 15.0.1

I have a page where a popup is created through iFrames.

- I use switchTo().frame("LookupWindow") to switch to the popup.
- I then successfully enter some text and look up a value
- Once the value is found, it is displayed as a hyperlink, and I click on on it (still on the popup)
- The popup now closes (because I clicked on the value in the popup)

This all expected behavior and works fine.  However, the code hangs after the statement that clicks the value (which in turn closes the window).  It waits forever, does not report an error at all.

Ideas?  Workarounds?

Thanks.

Michael Wowro

unread,
Oct 31, 2012, 5:01:58 AM10/31/12
to seleniu...@googlegroups.com
Hi,

try that
before opening the popup
String mainHandle = driver.getWindowHandle();

after closing the popup
driver.switchTo().window(mainHandle);

if that doesn't help, please provide 2.) -> https://groups.google.com/forum/#!msg/selenium-users/T2lbH3Nfpto/HbhR7frrUDQJ

Yours Michael

mahadi

unread,
Oct 31, 2012, 5:00:36 PM10/31/12
to seleniu...@googlegroups.com
Hi,

i had same issue with FF15 and webdriver-2.25. And don't find any solution for that too. Then i have to downgrade FF15 to FF14 to keep up running my tests.

It would be great if someone can be able to figure out that bug. I have already post a details thread about that here: http://bit.ly/TuU5Ah

Best Regards,
Mahadi

Mike Riley

unread,
Nov 7, 2012, 4:29:47 PM11/7/12
to seleniu...@googlegroups.com
Have either of you tried 2.26.0, which is supposed to support up to FF 16?

Mike
Reply all
Reply to author
Forward
0 new messages