How to set focus(bring in front) on a specific tab in Internet Explorer
I have opened 2 or more Internet Explorers with 5 tabs in each Internet Explorer. I want to bring in front only the tab which has "Google" opened in it.
I tried with this code, but it is not working.
Set objShell = WScript.CreateObject("WScript.Shell" )
Note: All the tabs have different pages.
try shell.sendkeys with CTRL+Tab and check if its URL will be the window's URL. Change the tabs in loop until the window URL changes back to the first
I haven't done OLE scripting in a while.
A quick google search I was able to locate the APIs that allow you to operate on a page level.
IWebBrowser2 interface (Windows)
What you'll want is the method calls 2 levels above those, the tab and window level.
What language are you scripting in?
In QTP you can use something such as: