Skip to content

Commit

Permalink
update api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed May 1, 2022
1 parent 07c62f3 commit b8f1f4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/api/assertions/domPropertyMatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/api/assertions/titleContains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit b8f1f4c

Please sign in to comment.