Watir::IE.attach(:title,/x/) not working correctly on Win 7 IE8
- by Zachary Hayes
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?