Watir::IE.attach(:title,/x/) not working correctly on Win 7 IE8

Posted by Zachary Hayes on Stack Overflow See other posts from Stack Overflow or by Zachary Hayes
Published on 2010-04-20T23:36:51Z Indexed on 2010/04/20 23:43 UTC
Read the original article Hit count: 313

Filed under:

System: Window 7 Internet Explorer 8 Ruby 1.8 Watir 1.6.5

If I manually open a browser window and then visit a site that causes a second browser window to open and then use the Watir::IE.attach method to find the second browser window everything work fine. The problem is when I open the first Internet Explorer window with the command Watir::IE.new and then visit a site that causes a second browser window to open. When I use Watir::IE.attach to find the second browser window I now get: Watir::Exception::NoMatchingWindowFoundException: Unable to location a window with title of (?-mix:x) from /ie-class.rb:297:in 'attach_browser_window' from /ie-class.rb:149:in '_attach_init' from /ie-class.rb:143:in 'attach' from (irb):15

Has anyone run into this problem and developed a solution?

© Stack Overflow or respective owner

Related posts about watir