getTitle(driver) → {String}
getTitle
Parameters:
Name | Type | Description |
---|---|---|
driver |
Object |
webdriver object of web browser. |
Returns:
It will return the current Web pae title.
- Type
- String
Example
Examples usage of getTitle
getTitle(driver).then(() => {
// It will return the current title of page.
}).catch((error) => {
// handle error
});