Namespace: getCurrentUrl

getCurrentUrl

getCurrentUrl(driver) → {String}

getCurrentUrl

Parameters:
Name Type Description
driver Object

webdriver object of web browser.

Returns:

It will return the current page url.

Type
String

Example

Examples usage of getCurrentUrl

 getCurrentUrl(driver).then((url) => {
  // Ir will return the url of current webPae
 }).catch((error) => {
   // handle error
 });