currentURLObject
public
Returns the current URL.
Example:
function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL);
Returns:
-
Object
- The currently active URL.
currentURLObject
public
Returns the current URL.
Example:
function validateURL() { equal(currentURL(), '/some/path', "correct URL was transitioned into."); } click('#some-link-id').then(validateURL);
Object
Please login to continue.