testdevlab / TestUI

MIT License
33 stars 9 forks source link

Add functionality to retrieve current URL #59

Closed eglitise closed 4 years ago

eglitise commented 4 years ago

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.*:

It would be beneficial to have a top-level platform-agnostic method for accomplishing this.