Checks if the page title contains the given value.

Usage

Example

this.demoTest = function (browser) {
  browser.assert.titleContains('Nightwatch.js');
};

Parameters

Name Type description
value string

The value to look for.

msg
Optional
string

Optional log message to display in the output. If missing, one is displayed by default.