cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh a web page

CarolinaSoeiro
Level 3
Good morning,

Is there a good practice to reload a web page when it has been already open? In an action? 

Example: 
I have Google open, and I want the page to be automatically reloaded. Still a begginer 🙂

Thanks
2 REPLIES 2

ErinConnerley
Level 4
There are a number of ways to do what you want depending on what browser you are using and what kind of reliability you want out of it. You could do something as simple as sending F5 to the browser or you could click the browser's refresh button or you could invoke javascript to refresh the content. Most people will probably send F5. From there you can have wait stages before and after to validate the refresh. How much you want to validate the action is up to you but for reusability I'd validate it as much as possible to work in as many situations as possible without drastically slowing down the action.

CarolinaSoeiro
Level 3
Erin,

Thank you for your help! I've worked out another alternative with UIA automation, however I will keep your feedback for future challenges

Carolina