googleid_102416
13 years agoContributor
Cannot navigate to a page in FireFox and Chrome
Hi, I'm trying to write a very basic code - launch a browser and open a web page:
function runBrowserAndNavigate () {
var web_browser = "iexplore";
//var web_browser = "firefox";
//var web_browser = "chrome";
// Run browser
if(!Sys.WaitBrowser(web_browser).Exists)
Browsers.Item(web_browser).Run();
var browser = Sys.Browser(web_browser);
var page = browser.Page("*");
page.Navigate("http://osm.org"); // rises an error in FF and Chrome
page.Wait();
}
This works for IE, but dosn't work for Google Chrome and FireFox:
Google Chrome was launched. 0:26:44 Normal
Unable to find the object Navigate("http://osm.org"). See Additional Information for details. 0:26:59 Normal
The test run has stopped because the "Stop on Error" setting is enabled. 0:27:01 Normal
What am I missing?
Thanks.