Checks if the current url matches a regular expression.

Usage

Example

this.demoTest = function (client) {
  browser.assert.urlMatches('^https');
};

Parameters

Name Type description
regexExpression string | RegExp

Regex expression to match URL

msg
Optional
string

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