Ref: http://www.rubydoc.info/gems/watir-webdriver/Watir/Window
browser.window(title: "closeable window").use do browser.a(id: "close").click end On Thursday, May 18, 2017 at 9:11:13 AM UTC-5, 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.
