Forum Discussion

SK2's avatar
SK2
Contributor
3 years ago

Refresh method does not refresh the page

If I use the Browser.Refresh() or use the 'Refresh' operation for the BrowserWindow Item in Keyword test, it does not actually refresh the web page.

 

 

  • Hi,

     

    Try to replace the asterisk with your real tested address. Or use not page but its containing window. The general idea is to send F5 key to the browser to make it reload the page.

     

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    .Refresh() is a method provided by TestComplete and it does not reload the page.

    Try, for example,

    Browser.Page('*').Keys("[F5]");

    Browser.Page('*').Wait();

     

    Does it help?

     

    • SK2's avatar
      SK2
      Contributor

      I am receiving following message:

      Unable to find the object Page("*"). See Details for additional information.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        Try to replace the asterisk with your real tested address. Or use not page but its containing window. The general idea is to send F5 key to the browser to make it reload the page.