Forum Discussion
ghuff2
10 years agoContributor
Calling the Page("*") method with an asterisk is always going to return the first opened tab in the browser. You can usually name map different Pages, or pass in the URL and index when calling the Page() method.
Here's the doc for the Page()
EVarnavsky
Alumni
10 years agoPlease use ToUrl method of a Browser object. This method uses a first visible page - the new tab in this case,
function testcode(){
var browser, page;
browser = Sys.Browser("*");
browser.BrowserWindow(0).Keys("^t");
page = browser.ToUrl('yahoo.com');
}