Get the current page title.

Usage

Example

 this.demoTest = function (browser) {
   browser.title(function(result) {
     console.log(result.value);
   });
}

Parameters

Name Type description
callback function

Callback function which is called with the result value.

W3C WebDriver spec