getTitle

Get the title of current opened website.

Usage

1
client.getTitle().then(callback);

Parameters

Param Type Details

Example

getTitle.js
1
2
3
4
5
6
7
client
.url('http://webdriver.io')
.getTitle().then(function(title) {
console.log(title);
// outputs the following:
// "WebdriverIO - Selenium 2.0 javascript bindings for nodejs"
});

Uses