Forum Discussion

rolkerhq's avatar
rolkerhq
New Member
3 years ago

Chrome Navigate to a page

When I call

Browsers.Item( btChrome ).Page(url);

 

where url is a valid URL, TestComplete will wait for Page(*)

 

and later report "Unable to Navigate to (URL)"

 

all recommended preparations for Chrome testing have been done

1 Reply

  • Hi rolkerhq,

     

    I hope you are keeping well.

     

    As per the following documentation on the Page Method

     

    The Page method returns a Page object that corresponds to the opened web page with the specified URL.

     

    As per the sample, you can add the Asterix (*) to the end of the url or alternatively run the following;

     

    Browsers.Item(btChrome).Run("https://google.com");
    var browser = Sys.Browser("chrome");
    var page = browser.Page("*");

     

    If you are just looking to navigate to a URL, the page method is not required, you can implement this using Navigate;

     

    Browsers.Item(btChrome).Navigate("https://google.com");

     

    Please let me know if this resolves your query or if you have any additional questions.

     

    Thanks,

    Shane