Forum Discussion
rraghvani
Champion Level 3
3 years agoIgnore my previous statement, I just figured out it can be done,
function SwitchBetweenTabs()
{
// Open page
VirtualBrowsers.Item("Apple iPad").Run("https://www.w3schools.com/html/default.asp");
// New tabs
NameMapping.Sys.browser.Page("https://www.w3schools.com/html/default.asp").Keys("^t");
NameMapping.Sys.browser.Page("chrome://newtab/").ToUrl("https://www.w3schools.com/css/default.asp")
NameMapping.Sys.browser.Page("https://www.w3schools.com/css/default.asp").Keys("^t");
NameMapping.Sys.browser.Page("chrome://newtab/").ToUrl("https://www.w3schools.com/js/default.asp")
// Switch between tabs
NameMapping.Sys.browser.Page("https://www.w3schools.com/html/default.asp").Click();
NameMapping.Sys.browser.Page("https://www.w3schools.com/css/default.asp").Click();
NameMapping.Sys.browser.Page("https://www.w3schools.com/js/default.asp").Click();
}
You can use the above code to achieve what you need to do.
ḥari
3 years agoFrequent Contributor
Did you understand my question
In 1st tab i have an link while I am clicked it will be opened as a newtab so my page variable control is not in the newtab.
In 1st tab i have an link while I am clicked it will be opened as a newtab so my page variable control is not in the newtab.