Alan,

I've tried this on my multiple browser branch (the post you linked to  
below) and can confirm that the code works correctly.

Best wishes,

Alex


On 21 May 2009, at 22:04, Alan Ark wrote:

> Thank Bill.
>
> I found more info here:
>
> http://rubyforge.org/pipermail/wtr-development/2009-May/000520.html
>
>
> From: watir-general@googlegroups.com [mailto:watir-general@googlegroups.com 
> ] On Behalf Of Bill Agee
> Sent: Thursday, May 21, 2009 12:55 PM
> To: watir-general@googlegroups.com
> Subject: [wtr-general] Re: Weirdness when working with multiple  
> Firefox windows - using Watir::Browser
>
> I think this is a known issue in the trunk code (and older).   
> FireWatir currently only lets you interact with one browser window  
> at a time, so once you've attached to a new Firefox browser, you  
> have to close it down before you can interact with your first  
> browser again.
>
> I think there was some more info on this in posts to the Watir dev  
> list a few months ago...can't find it at the moment though.
>
> Still, I would also say this is worth an enhancement request if  
> there isn't one already.
>
> Thanks
> Bill
> On Thu, May 21, 2009 at 10:02 AM, Alan Ark <ar...@compli.com> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to