Article Overview:
This article will cover how you can achieve the following:
How to retrieve the current URL using the extension.
Problem Statement:
The user is not able to get the current URL via extension.
Solution:
- Use the extension code provided below to get the current URL:
function getCurrentUrl() {
return window.location.href;
}
console.log(getCurrentUrl());
return window.location.href; - Execute the test using the following NLP in your checkpoint:
getcurrentURL returning $Testurl
In case of any further queries, additions, or support please contact our Virtuoso Support Team.
Comments
0 comments
Please sign in to leave a comment.