This is the only way I guess. WATIR doesn't have any way to open the new tab. Do you face any problem?
On Wed, 10 Apr, 2019, 9:09 AM NaviHan, <[email protected]> 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. > -- -- 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.
