There is currently no platform-agnostic way to retrieve the current page URL through TestUI. There are existing methods in TestUI that are doing this - currentUrlEqualTo() and currentUrlContains() - but to the user, they offer purely validation as opposed to data retrieval.
Currently my approach to retrieve the URL is platform-dependent, after importing testUI.TestUIDriver.*:
For mobile: getDriver().getCurrentUrl()
For desktop: getSelenideDriver().getCurrentUrl()
It would be beneficial to have a top-level platform-agnostic method for accomplishing this.
There is currently no platform-agnostic way to retrieve the current page URL through TestUI. There are existing methods in TestUI that are doing this -
currentUrlEqualTo()
andcurrentUrlContains()
- but to the user, they offer purely validation as opposed to data retrieval.Currently my approach to retrieve the URL is platform-dependent, after importing
testUI.TestUIDriver.*
:getDriver().getCurrentUrl()
getSelenideDriver().getCurrentUrl()
It would be beneficial to have a top-level platform-agnostic method for accomplishing this.