Ask a Question

how to refresh browser in KDT

SOLVED
Nikhil1249
New Contributor

how to refresh browser in KDT

Once I navigate from first page to second page I want to refresh the browser to load the page in the middle of the test. 

How can I implement refresh browser in the KDT ?

Generally we use browser.refresh() for the script test. so what step we can use for KDT ?

3 REPLIES 3
Marsha_R
Community Hero

You can use Run Code Snippet in your keyword test and use the same refresh that you use in a script.

 

Marsha_R_0-1604425025003.png

 


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

I have tried using browser.Refresh () in the code snippet and the browser was not refreshed. Could you please help me with the screen shot or specify the code I need to use in the code snippet ? 

Code examples are here:

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/web/general/browsers...

 

Try running just the code snippet line of your test and see what happens.  Maybe the refresh is working and there's another issue, like the timing is off.


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
cancel
Showing results for 
Search instead for 
Did you mean: