I want to duplicate the browser in a new tab. Not open a blank new tab.
And are we sure that javascript is the only way to open a new tab?
On Wednesday, 10 April 2019 13:39:32 UTC+10, NaviHan wrote:
>
> Is there a way to duplicate a tab using Watir?
>
> (in chrome, right click on tab>Duplicate tab)
>
> I know we can use the javascript to open a new tab?
> Even if its new tab is there a Watir way to do that?
>
> @browser.execute_script("window.open('http://www.google.com', '_blank')")
>
>
>
>
--
--
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.