Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 750 Bytes

File metadata and controls

28 lines (19 loc) · 750 Bytes
description
Learn how to use the I.getURL command to get the URL of the page in your UIlicious test.

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.