What are you trying to do with two windows? To switch between windows using 
`browser.window` both have to be opened by the same driver.
`browser1 = Watir::Browser.new` and `browser2 = Watir::Browser.new` will 
allow you to have two windows, but those windows will have two different 
drivers and won't share any session information.


On Thursday, May 18, 2017 at 7:11:13 AM UTC-7, sivam wrote:
>
> Thanks Rajagopalan. I opened 2 IE Windows from watir and I tried 
> Windows[n].use and Windows.first.use. but nothing worked for me to move 
> across browsers opened by watir. Am I missing something here? Thanks in 
> advance .
>
> On May 17, 2017 10:05 PM, "Raja gopalan" <[email protected] 
> <javascript:>> wrote:
>
>> Hi WATIR 6.0 onwards watir lies on selenium, selenium doesn't have the 
>> facility of attaching the browser. But you move between the window of the 
>> browsers if browsers are opened by drivers(not manually). 
>>
>> On Tuesday, May 16, 2017 at 1:26:16 AM UTC+5:30, sivam wrote:
>>>
>>> Hi, recently I have migrated to watir 6.1.0 from watir 1.8.6. 
>>> I was trying to use the functionality IE.attach to attach any existing 
>>> IE window in latest. But I couldn't find any which has the same 
>>> functionality of attach to attach any existing browser window in latest 
>>> watir. Can someone pls help me on this? Instead of opening a new browser on 
>>> ie , I want the control on existing ie Windows.
>>
>> -- 
>> -- 
>> Before posting, please read http://watir.com/support. In short: search 
>> before you ask, be nice.
>>  
>> [email protected] <javascript:>
>> http://groups.google.com/group/watir-general
>> [email protected] <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Watir General" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to