Get page URL

I.getURL

Get the URL of the page

Usage

I.getURL()

Example(s)

I.goTo("https://www.wikipedia.org/")
var URL = I.getURL()

// Validate extracted URL by using TEST.log.info to display it in result screen
TEST.log.info("Current URL is " + URL)

This example test navigates to the https://www.wikipedia.org/ and gets the current URL of the page to the URL variable.

Last Updated: