Forum Discussion
rraghvani
Champion Level 3
Ignore 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
2 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.
Related Content
- 2 years ago
- 11 years ago
- 9 years ago
Recent Discussions
- 9 hours ago
- 7 days ago
- 10 days ago