Open Tab (openTab)

The Open Tab API will let you open a new tab with the provided URL just like the Navigate To (navigateTo) API.

Open Tab will open a new tab while playing back the script with the provided URL. You can switch between different tabs by using the Select Window (selectWindow) API.

The URL must be a complete, valid URL. Partial links are not allowed.

  • Valid URL: "https://www.company.com/product"

  • Invalid URL: "product"

Javascript Example

Copy
navigateTo("http://sahitest.com/demo/  ");
click(link("a x"));
        
openTab("https://www.apple.com/  ");
click(span("Mac"));
        
selectWindow("Mac - Apple");
        
click(link("ac-gn-link ac-gn-link-watch"));
        
selectWindow("Link Test");
        
click(bold("linkByHtml"));