From b8f1f4cba26c39dc04a10896649f794b35e800bc Mon Sep 17 00:00:00 2001 From: Andrei Rusu Date: Sun, 1 May 2022 18:54:52 +0200 Subject: [PATCH] update api docs --- lib/api/assertions/domPropertyMatches.js | 8 ++++---- lib/api/assertions/titleContains.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 */