Ask a Question

Refresh the browser page

SOLVED
simonaferrara
Contributor

Refresh the browser page

Hi all,

 

I need to refresh the browser within my tests, like doing an F5 on the browser.

The "Browsers.Refresh" method seems not suitable for my scope (it refresh the object tree within TestComplete, but not the browser page).

Is there a method to refresh the browser page?

I would not to be bound to use the Keys method with F5 (in this case, I'm bound to have the focus on the browser page).

 

Thanks

Simona

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: Refresh the browser page

Hi,

 

Refresh (F5) in browser essentially requests page a-new from web server.

So you may use .Navigate() or .ToURL() methods to refresh the page.

While I am with Marsha and would use F5 unless there are some specific requirements/conditions.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

3 REPLIES 3
Marsha_R
Community Hero

Re: Refresh the browser page

Why not use the F5 refresh and then reset your Focus?   You can save the object name before you use F5 if you need to.

Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
simonaferrara
Contributor

Re: Refresh the browser page

Yes @Marsha_R , but I was looking for a specific method, more reliable, to be used for the browser to refresh it, and it seems strange that it is not existing and that the only way is to press the F5 key within the code. 

 

AlexKaras
Community Hero

Re: Refresh the browser page

Hi,

 

Refresh (F5) in browser essentially requests page a-new from web server.

So you may use .Navigate() or .ToURL() methods to refresh the page.

While I am with Marsha and would use F5 unless there are some specific requirements/conditions.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: