browser.window(index: 1).use
but you can specify by title or url as well as index.


On Saturday, February 17, 2018 at 6:09:52 AM UTC-6, [email protected] 
wrote:
>
> How can I write the corresponding WATIR CODE for this given below selenium 
> Code?
>
> driver.switch_to.window driver.window_handles[1]
>
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
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