.assert.titleMatches() Suggest edits
Checks if the current title matches a regular expression.
Usage
Example
this.demoTest = function (client) {
browser.assert.titleMatches('^Nightwatch');
};
Parameters
Name | Type | description |
---|---|---|
regexExpression |
string | RegExp | Regex expression to match current title of a page |
msg Optional |
string | Optional log message to display in the output. If missing, one is displayed by default. |