I think it is more like a problem with 'attach'. There is known issue with attaching to Firefox.
________________________________ From: Alan Ark <ar...@compli.com> To: "watir-general@googlegroups.com" <watir-general@googlegroups.com> Sent: Thursday, May 21, 2009 10:02:50 AM Subject: [wtr-general] Weirdness when working with multiple Firefox windows - using Watir::Browser Hi folks. Running ruby 1.8.6 Win XP SP3 Version of Watir from github from (5/20/2009) – reports as 1.6.2, but its not the released version. It appears that my browser windows are getting their wires crossed somehow. I’m attaching code that should show the problem. What I see: Browser A goes to a page and clicks on a link to open a print friendly view of the page. Browser C should attach to the new window. Somehow Browser A now thinks that it’s the same thing as Browser C? What I expected: Browser A and Browser C remain separate. Code to use in IRB #watir_browser is set to FF - using v 3.0.0.10 on my local machine. require 'Watir' a=Watir::Browser.new a.goto("http://sportsillustrated.cnn.com/2009/baseball/mlb/05/21/peavy.trade/index.html") a.image(:alt,"PRINT").click # wait_until(30) { c=Watir::Browser.attach(:url,/printthis/) } # this line is not working yet. sleep 10 # attach will throw exception if the window does not appear in time. c=Watir::Browser.attach(:url,/printthis/) # if the window does not appear in time. a.url # returns the URL from c! I’m thinking that I should probably log this in JIRA, but I figured that I’d open the discussion 1st. Thanks -Alan ________________________________ Alan Ark | QA Manager| Complí | ar...@compli.com | office: 503.294.2020 x106 | fax: 503.294.1200 | www.compli.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---