About Article:
This article will describe how to achieve the following:
Reload or refresh a page using an extension
Problem Statement:
There are instances where customers want to reload or refresh the current page of the Application Under Tests.
Solution:
Reload/Refresh page in the Journey using extension:
Users can create an extension using the following code:
function refreshPage() {
window.location.reload();
}
refreshPage();
Steps to use it:
- Navigate to the Extensions tab
- Create a new Extension and name it “ReloadPage”
- Copy the code into the Extension named ReloadPage
- Save the Extension
- Navigate to the Step in the Journey where the page needs to be reloaded
- Create a new Step with NLP - Execute ReloadPage
- Execute the Journey
Reload/Refresh page in the Journey using In-line extension:
Users can create an Inline-extension step using the following code in the journey:
- Execute "window.location.reload()"
Reload/Refresh page in the LA using DevTools:
- Open the LA preview
- Navigate to the Network tab
- Press Ctrl+R to reload the page on Virtuoso browser
Comments
0 comments
Please sign in to leave a comment.