korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

attach method incorrectly attachs to parent window when child popup has same title as parent #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ff.link(:text, 'popup').click # open popup with same title as parent:
"parent title"
2. ff.attach(:title, 'parent title')

What is the expected output? What do you see instead?
The browser object should attach to popup window. Instead the object is
attached to the parent window.

What version of the product are you using? On what operating system?
Version 1.6.2
Windows XP

Please provide any additional information below.
I've attached a patch to find_window method with unit tests.
Searches for window to attach to in reverse order. Results in attaching to
most recently opened window.

Original issue reported on code.google.com by Druw...@gmail.com on 8 Jul 2009 at 9:48

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the bug and the patch. Will look into it and update the source code

Original comment by ang...@gmail.com on 9 Jul 2009 at 6:37

GoogleCodeExporter commented 9 years ago
moved to http://jira.openqa.org/browse/WTR-404

Original comment by zeljko.f...@gmail.com on 5 Nov 2009 at 2:42

GoogleCodeExporter commented 9 years ago
Ticket moved to http://jira.openqa.org/browse/WTR. Please see comments for
the exact URL.

Original comment by zeljko.f...@gmail.com on 20 Nov 2009 at 10:39