diff --git a/lib/api/assertions/domPropertyMatches.js b/lib/api/assertions/domPropertyMatches.js index fbcb8481e5..e6945ecff9 100644 --- a/lib/api/assertions/domPropertyMatches.js +++ b/lib/api/assertions/domPropertyMatches.js @@ -5,15 +5,15 @@ * @example * * ``` - * this.demoTest = function (browser) { - * browser.assert.domPropertyMatches('#main', 'tagName', '(frame)'); - * + * this.demoTest = function (browser) { + * browser.assert.domPropertyMatches('#main', 'tagName', /^frame/); + * } * ``` * * @method domPropertyMatches * @param {string|object} definition The selector (CSS/Xpath) used to locate the element. Can either be a string or an object which specifies [element properties](https://nightwatchjs.org/guide#element-properties). * @param {string} domProperty The DOM property name. - * @param {string|RegExp} regexExpression TRegex expression to match text. + * @param {string|RegExp} regexExpression Regex to match against. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. * @api assertions */ diff --git a/lib/api/assertions/titleContains.js b/lib/api/assertions/titleContains.js index 70fb5dd818..d0206e0208 100644 --- a/lib/api/assertions/titleContains.js +++ b/lib/api/assertions/titleContains.js @@ -7,8 +7,8 @@ * }; * ``` * - * @method title - * @param {string} expected The expected page title. + * @method titleContains + * @param {string} value The value to look for. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. * @api assertions */