diff --git a/lib/api/assertions/attributeContains.js b/lib/api/assertions/attributeContains.js index a150c66e5f..eb524142fd 100644 --- a/lib/api/assertions/attributeContains.js +++ b/lib/api/assertions/attributeContains.js @@ -7,7 +7,7 @@ * }; * * @method assert.attributeContains - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} attribute The attribute name * @param {string} expected The expected contained value of the attribute to check. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. diff --git a/lib/api/assertions/attributeEquals.js b/lib/api/assertions/attributeEquals.js index f1a1c23546..5e2c0465b1 100644 --- a/lib/api/assertions/attributeEquals.js +++ b/lib/api/assertions/attributeEquals.js @@ -7,7 +7,7 @@ * }; * * @method assert.attributeEquals - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} attribute The attribute name * @param {string} expected The expected value of the attribute to check. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. diff --git a/lib/api/assertions/attributeMatches.js b/lib/api/assertions/attributeMatches.js index ba4b9ecd48..552912b4d2 100644 --- a/lib/api/assertions/attributeMatches.js +++ b/lib/api/assertions/attributeMatches.js @@ -7,7 +7,7 @@ * }; * * @method assert.attributeMatches - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} attribute The attribute name * @param {string|RegExp} regexExpression Regex expression to match attribute value. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. diff --git a/lib/api/assertions/containsText.js b/lib/api/assertions/containsText.js index 358760d6d7..0f7fadae79 100644 --- a/lib/api/assertions/containsText.js +++ b/lib/api/assertions/containsText.js @@ -8,7 +8,7 @@ * ``` * * @method assert.containsText - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expectedText The text to look for. * @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/cssClassPresent.js b/lib/api/assertions/cssClassPresent.js index c4f35a32db..56ffd3c280 100644 --- a/lib/api/assertions/cssClassPresent.js +++ b/lib/api/assertions/cssClassPresent.js @@ -12,7 +12,7 @@ * ``` * * @method assert.cssClassPresent - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} className The CSS class to look for. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. * @api assertions @@ -32,7 +32,7 @@ exports.assertion = function(definition, expected, msg) { 'removed from future versions. Use assert.hasClass().'); this.formatMessage = function() { - let message = msg || `Testing if element %s ${this.negate ? 'doesn\'t have css class %s' : 'has css class %s'}`; + const message = msg || `Testing if element %s ${this.negate ? 'doesn\'t have css class %s' : 'has css class %s'}`; return { message, diff --git a/lib/api/assertions/cssProperty.js b/lib/api/assertions/cssProperty.js index 00582a37f7..83861bf044 100644 --- a/lib/api/assertions/cssProperty.js +++ b/lib/api/assertions/cssProperty.js @@ -7,7 +7,7 @@ * }; * * @method assert.cssProperty - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} cssProperty The CSS property. * @param {string} expected The expected value of the css property to check. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. @@ -21,7 +21,7 @@ exports.assertion = function(definition, cssProperty, expected, msg) { }; this.formatMessage = function() { - let message = msg || `Testing if element %s ${this.negate ? 'doesn\'t have css property %s: %s' : 'has css property %s: %s'}`; + const message = msg || `Testing if element %s ${this.negate ? 'doesn\'t have css property %s: %s' : 'has css property %s: %s'}`; return { message, diff --git a/lib/api/assertions/domPropertyContains.js b/lib/api/assertions/domPropertyContains.js index 1fee009b22..7139e4a5a8 100644 --- a/lib/api/assertions/domPropertyContains.js +++ b/lib/api/assertions/domPropertyContains.js @@ -12,7 +12,7 @@ * }; * * @method assert.domPropertyContains - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} domProperty The DOM property name. * @param {string} expected The expected value of the DOM property to check. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. diff --git a/lib/api/assertions/domPropertyEquals.js b/lib/api/assertions/domPropertyEquals.js index bcca962ac0..b0442725e1 100644 --- a/lib/api/assertions/domPropertyEquals.js +++ b/lib/api/assertions/domPropertyEquals.js @@ -14,7 +14,7 @@ * }; * * @method assert.domPropertyEquals - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} domProperty The DOM property name. * @param {string} expected The expected value of the DOM property to check. * @param {string} [msg] Optional log message to display in the output. If missing, one is displayed by default. diff --git a/lib/api/assertions/domPropertyMatches.js b/lib/api/assertions/domPropertyMatches.js index ff03f08e77..3dc90dcdc4 100644 --- a/lib/api/assertions/domPropertyMatches.js +++ b/lib/api/assertions/domPropertyMatches.js @@ -8,7 +8,7 @@ * } * * @method assert.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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} domProperty The DOM property name. * @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. diff --git a/lib/api/assertions/elementPresent.js b/lib/api/assertions/elementPresent.js index 3972c78d72..e56ad6675a 100644 --- a/lib/api/assertions/elementPresent.js +++ b/lib/api/assertions/elementPresent.js @@ -7,7 +7,7 @@ * }; * * @method assert.elementPresent - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} [message] Optional log message to display in the output. If missing, one is displayed by default. * @api assertions */ diff --git a/lib/api/assertions/elementsCount.js b/lib/api/assertions/elementsCount.js index c8b5285817..bdf99bd458 100644 --- a/lib/api/assertions/elementsCount.js +++ b/lib/api/assertions/elementsCount.js @@ -8,7 +8,7 @@ * } * * @method assert.elementsCount - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} count expected number of elements to be present. * @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/hasAttribute.js b/lib/api/assertions/hasAttribute.js index 8143b300d4..e215307696 100644 --- a/lib/api/assertions/hasAttribute.js +++ b/lib/api/assertions/hasAttribute.js @@ -10,7 +10,7 @@ * }; * * @method assert.hasAttribute - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expectedAttribute The DOM attribute to look for. * @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/hasClass.js b/lib/api/assertions/hasClass.js index fa115dd5b3..8f1de87042 100644 --- a/lib/api/assertions/hasClass.js +++ b/lib/api/assertions/hasClass.js @@ -9,7 +9,7 @@ * }; * * @method hasClass - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} className The CSS class to look for. * @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/hasDescendants.js b/lib/api/assertions/hasDescendants.js index a9d28bc88f..d7bc20c55b 100644 --- a/lib/api/assertions/hasDescendants.js +++ b/lib/api/assertions/hasDescendants.js @@ -8,7 +8,7 @@ * }; * * @method assert.hasDescendants - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} className The CSS class to look for. * @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/textContains.js b/lib/api/assertions/textContains.js index 79ab49acba..f0df5bcc96 100644 --- a/lib/api/assertions/textContains.js +++ b/lib/api/assertions/textContains.js @@ -7,7 +7,7 @@ * }; * * @method assert.textContains - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expectedText The text to look for. * @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/textEquals.js b/lib/api/assertions/textEquals.js index 4d83a80eef..b6364c1616 100644 --- a/lib/api/assertions/textEquals.js +++ b/lib/api/assertions/textEquals.js @@ -7,7 +7,7 @@ * }; * * @method assert.textEquals - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expected text to match text. * @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/textMatches.js b/lib/api/assertions/textMatches.js index d09e14a790..98cfdba401 100644 --- a/lib/api/assertions/textMatches.js +++ b/lib/api/assertions/textMatches.js @@ -7,7 +7,7 @@ * }; * * @method assert.textMatches - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string|RegExp} regexExpression Regex expression to match text. * @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/value.js b/lib/api/assertions/value.js index a4fdc9617c..80fcae645c 100644 --- a/lib/api/assertions/value.js +++ b/lib/api/assertions/value.js @@ -8,7 +8,7 @@ * ``` * * @method value - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expected The expected text. * @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/valueContains.js b/lib/api/assertions/valueContains.js index 9d54ba371a..5f84e5264b 100644 --- a/lib/api/assertions/valueContains.js +++ b/lib/api/assertions/valueContains.js @@ -7,7 +7,7 @@ * }; * * @method assert.valueContains - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expected The expected text. * @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/valueEquals.js b/lib/api/assertions/valueEquals.js index 14a3d291e5..58538cb4e0 100644 --- a/lib/api/assertions/valueEquals.js +++ b/lib/api/assertions/valueEquals.js @@ -11,7 +11,7 @@ * }; * * @method assert.valueEquals - * @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|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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} expected The expected text. * @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/client-commands/within.js b/lib/api/client-commands/within.js index 60931fe6bc..f0cd9e1977 100644 --- a/lib/api/client-commands/within.js +++ b/lib/api/client-commands/within.js @@ -12,7 +12,7 @@ * * @method within * @syntax browser.within('#element').click('button'); - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @api protocol.elements * @since 2.5.5 */ diff --git a/lib/api/element-commands/clearValue.js b/lib/api/element-commands/clearValue.js index 2f3f945b7a..1adf3ff812 100644 --- a/lib/api/element-commands/clearValue.js +++ b/lib/api/element-commands/clearValue.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.clearValue('css selector', '#login input[type=text]'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.clearValue({ * selector: '#login input[type=text]', * index: 1, @@ -35,7 +35,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // using global element() * browser.clearValue(element('<SELECTOR>')) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} [callback] Optional callback function to be called when the command finishes. * @api protocol.elementinteraction * @link /#dfn-element-clear diff --git a/lib/api/element-commands/click.js b/lib/api/element-commands/click.js index 7a7a6006a0..28479baf40 100644 --- a/lib/api/element-commands/click.js +++ b/lib/api/element-commands/click.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.click('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.click({ * selector: '#main ul li a', * index: 1, diff --git a/lib/api/element-commands/clickAndHold.js b/lib/api/element-commands/clickAndHold.js index 3839c31c5a..02148d54d2 100644 --- a/lib/api/element-commands/clickAndHold.js +++ b/lib/api/element-commands/clickAndHold.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.clickAndHold('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.clickAndHold({ * selector: '#main ul li a', * index: 1, diff --git a/lib/api/element-commands/doubleClick.js b/lib/api/element-commands/doubleClick.js index 833052a04f..f944cbb9d5 100644 --- a/lib/api/element-commands/doubleClick.js +++ b/lib/api/element-commands/doubleClick.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.doubleClick('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.doubleClick({ * selector: '#main ul li a', * index: 1, diff --git a/lib/api/element-commands/getAccessibleName.js b/lib/api/element-commands/getAccessibleName.js index 5f4ef4a793..951cdb2278 100644 --- a/lib/api/element-commands/getAccessibleName.js +++ b/lib/api/element-commands/getAccessibleName.js @@ -16,7 +16,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('getAccessibleName result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAccessibleName({ * selector: '*[name="search"]', * index: 1 diff --git a/lib/api/element-commands/getAriaRole.js b/lib/api/element-commands/getAriaRole.js index 2e644bc126..36e897d42e 100644 --- a/lib/api/element-commands/getAriaRole.js +++ b/lib/api/element-commands/getAriaRole.js @@ -16,7 +16,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('getAriaRole result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAriaRole({ * selector: '*[name="search"]', * index: 1 diff --git a/lib/api/element-commands/getAttribute.js b/lib/api/element-commands/getAttribute.js index 14f96cf4e7..bbaf143be0 100644 --- a/lib/api/element-commands/getAttribute.js +++ b/lib/api/element-commands/getAttribute.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAttribute({ * selector: '#main ul li a.first', * index: 1, @@ -36,7 +36,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getAttribute(using, selector, attribute, callback) * @syntax browser.element(selector).getAttribute(name) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} attribute The attribute name to inspect. * @param {function} callback Callback function which is called with the result value; not required if using `await` operator. * @returns {*} The value of the attribute diff --git a/lib/api/element-commands/getCssProperty.js b/lib/api/element-commands/getCssProperty.js index df5477bb43..859121e5ce 100644 --- a/lib/api/element-commands/getCssProperty.js +++ b/lib/api/element-commands/getCssProperty.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getCssProperty({ * selector: '#main ul li a.first', * index: 1, @@ -36,7 +36,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getCssProperty(using, selector, cssProperty, callback) * @syntax browser.element(selector).getCssProperty(name) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} cssProperty The CSS property to inspect. * @param {function} callback Callback function which is called with the result value; not required if using `await` operator. * @returns {*} The value of the css property diff --git a/lib/api/element-commands/getElementProperty.js b/lib/api/element-commands/getElementProperty.js index e71af018a8..720fce3e72 100644 --- a/lib/api/element-commands/getElementProperty.js +++ b/lib/api/element-commands/getElementProperty.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementProperty({ * selector: '#login input[type=text]', * index: 1, @@ -35,7 +35,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getElementProperty(selector, property, callback) * @syntax .getElementProperty(using, selector, property, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} property The property to inspect. * @param {function} callback Callback function which is called with the result value; not required if using `await` operator. * @returns {*} The value of the property diff --git a/lib/api/element-commands/getElementRect.js b/lib/api/element-commands/getElementRect.js index 844dc95175..1ee96009ef 100644 --- a/lib/api/element-commands/getElementRect.js +++ b/lib/api/element-commands/getElementRect.js @@ -20,7 +20,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementRect({ * selector: '#login', * index: 1, @@ -40,7 +40,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getElementRect(selector, callback) * @syntax .getElementRect(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {{width: number, height: number}} The width and height of the element in pixels * @link /#dfn-get-element-rect diff --git a/lib/api/element-commands/getElementSize.js b/lib/api/element-commands/getElementSize.js index 9447f8f927..513f3bc535 100644 --- a/lib/api/element-commands/getElementSize.js +++ b/lib/api/element-commands/getElementSize.js @@ -20,7 +20,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementSize({ * selector: '#login', * index: 1, @@ -40,7 +40,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getElementSize(selector, callback) * @syntax .getElementSize(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {{width: number, height: number}} The width and height of the element in pixels * @link /#dfn-get-element-rect diff --git a/lib/api/element-commands/getFirstElementChild.js b/lib/api/element-commands/getFirstElementChild.js index 6aff20a5f4..c265f76f8f 100644 --- a/lib/api/element-commands/getFirstElementChild.js +++ b/lib/api/element-commands/getFirstElementChild.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax browser.getFirstElementChild(selector) * @syntax browser.element(selector).getFirstElementChild() * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method getFirstElementChild * @since 2.0.0 diff --git a/lib/api/element-commands/getLastElementChild.js b/lib/api/element-commands/getLastElementChild.js index a73cbcf4b3..8a01632e1d 100644 --- a/lib/api/element-commands/getLastElementChild.js +++ b/lib/api/element-commands/getLastElementChild.js @@ -16,7 +16,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax browser.getLastElementChild(selector) * @syntax browser.element(selector).getLastElementChild() * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method getLastElementChild * @since 2.0.0 diff --git a/lib/api/element-commands/getLocation.js b/lib/api/element-commands/getLocation.js index f9d2127f6c..cf6a7c3a72 100644 --- a/lib/api/element-commands/getLocation.js +++ b/lib/api/element-commands/getLocation.js @@ -22,7 +22,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getLocation({ * selector: '#login', * index: 1, @@ -42,7 +42,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getLocation(selector, callback) * @syntax .getLocation(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {{x:number, y:number}} The X and Y coordinates for the element on the page. * @link /#dfn-get-element-rect diff --git a/lib/api/element-commands/getLocationInView.js b/lib/api/element-commands/getLocationInView.js index 29132b788d..79fbd45f4a 100644 --- a/lib/api/element-commands/getLocationInView.js +++ b/lib/api/element-commands/getLocationInView.js @@ -18,7 +18,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getLocationInView(selector, callback) * @syntax .getLocationInView(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {{x: number, y: number}} The X and Y coordinates for the element on the page. * @jsonwire diff --git a/lib/api/element-commands/getNextSibling.js b/lib/api/element-commands/getNextSibling.js index 4f89748939..27494f769e 100644 --- a/lib/api/element-commands/getNextSibling.js +++ b/lib/api/element-commands/getNextSibling.js @@ -14,7 +14,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax browser.getNextSibling(selector, callback) * @syntax browser.getNextSibling(selector) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method getNextSibling * @moreinfo developer.mozilla.org/en-US/docs/Web/API/Element/nextElementSibling diff --git a/lib/api/element-commands/getPreviousSibling.js b/lib/api/element-commands/getPreviousSibling.js index 953d4d84b6..f98c32a9be 100644 --- a/lib/api/element-commands/getPreviousSibling.js +++ b/lib/api/element-commands/getPreviousSibling.js @@ -34,7 +34,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * const formEl = await browser.findElement('form'); * const result = await browser.getPreviousSibling(formEl) * - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method getPreviousSibling * @returns {object} The resolved element object, which contains a convenience `.getId()` method that can be used to retrieve the element ID diff --git a/lib/api/element-commands/getShadowRoot.js b/lib/api/element-commands/getShadowRoot.js index 4777f82d5f..29ba3a3378 100644 --- a/lib/api/element-commands/getShadowRoot.js +++ b/lib/api/element-commands/getShadowRoot.js @@ -27,7 +27,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax browser.getShadowRoot(selector) * @syntax browser.element(selector).getShadowRoot() * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object|WebElement|By} selector 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|object|WebElement|By} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method getShadowRoot * @since 2.0.0 diff --git a/lib/api/element-commands/getTagName.js b/lib/api/element-commands/getTagName.js index 837893136e..9f0774fa1e 100644 --- a/lib/api/element-commands/getTagName.js +++ b/lib/api/element-commands/getTagName.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getTagName({ * selector: '#login', * index: 1, @@ -36,7 +36,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getTagName(using, selector, callback) * @syntax browser.element(selector).getTagName() * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {number} The element's tag name, as a lowercase string. * @link /#dfn-get-element-tag-name diff --git a/lib/api/element-commands/getText.js b/lib/api/element-commands/getText.js index a6e30675ed..b488db72b1 100644 --- a/lib/api/element-commands/getText.js +++ b/lib/api/element-commands/getText.js @@ -17,7 +17,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('getText result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getText({ * selector: '#main ul li a', * index: 1 diff --git a/lib/api/element-commands/getValue.js b/lib/api/element-commands/getValue.js index 38c7acc4c0..8de85e49bd 100644 --- a/lib/api/element-commands/getValue.js +++ b/lib/api/element-commands/getValue.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getValue({ * selector: '#login input[type=text]', * index: 1, @@ -35,7 +35,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .getValue(selector, callback) * @syntax browser.element(selector).getValue() * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @returns {string} The element's value. * @link /#get-element-property diff --git a/lib/api/element-commands/hasDescendants.js b/lib/api/element-commands/hasDescendants.js index 69356f8897..dd49134b2c 100644 --- a/lib/api/element-commands/hasDescendants.js +++ b/lib/api/element-commands/hasDescendants.js @@ -13,7 +13,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax browser.hasDescendants(selector, callback) * @syntax browser.hasDescendants(selector) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @method hasDescendants * @api protocol.elementstate diff --git a/lib/api/element-commands/isEnabled.js b/lib/api/element-commands/isEnabled.js index d0a03a8ebd..0483bb6b9f 100644 --- a/lib/api/element-commands/isEnabled.js +++ b/lib/api/element-commands/isEnabled.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.isEnabled('css selector', '#main select option.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isEnabled({ * selector: '#main ul li a', * index: 1, @@ -38,7 +38,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .isEnabled(selector, callback) * @syntax .isEnabled(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @link /#is-element-enabled * @api protocol.elementstate diff --git a/lib/api/element-commands/isPresent.js b/lib/api/element-commands/isPresent.js index 8bac2f5041..77f23cd9b6 100644 --- a/lib/api/element-commands/isPresent.js +++ b/lib/api/element-commands/isPresent.js @@ -15,7 +15,7 @@ const {Logger, filterStackTrace} = require('../../utils'); * // with explicit locate strategy * browser.isPresent('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isPresent({ * selector: '#main ul li a', * index: 1, @@ -37,7 +37,7 @@ const {Logger, filterStackTrace} = require('../../utils'); * @syntax .isPresent(selector, callback) * @syntax .isPresent(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @api protocol.elementstate */ diff --git a/lib/api/element-commands/isSelected.js b/lib/api/element-commands/isSelected.js index 48c97880ca..bfc1b4af1e 100644 --- a/lib/api/element-commands/isSelected.js +++ b/lib/api/element-commands/isSelected.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.isSelected('css selector', '#main select option.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isSelected({ * selector: '#main ul li a', * index: 1, @@ -38,7 +38,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .isSelected(selector, callback) * @syntax .isSelected(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @link /#is-element-selected * @api protocol.elementstate diff --git a/lib/api/element-commands/isVisible.js b/lib/api/element-commands/isVisible.js index 5fd6ff9bf4..511ff341ba 100644 --- a/lib/api/element-commands/isVisible.js +++ b/lib/api/element-commands/isVisible.js @@ -16,7 +16,7 @@ const {isUndefined} = require('../../utils'); * // with explicit locate strategy * browser.isVisible('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isVisible({ * selector: '#main ul li a', * index: 1, @@ -39,7 +39,7 @@ const {isUndefined} = require('../../utils'); * @syntax .isVisible(selector, callback) * @syntax .isVisible(using, selector, callback) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} callback Callback function which is called with the result value. * @link /#element-displayedness * @api protocol.elementstate diff --git a/lib/api/element-commands/moveToElement.js b/lib/api/element-commands/moveToElement.js index a4e2cb60a3..9867c75c80 100644 --- a/lib/api/element-commands/moveToElement.js +++ b/lib/api/element-commands/moveToElement.js @@ -14,7 +14,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .moveToElement(using, selector, xoffset, yoffset, [callback]) * @syntax browser.element(selector).moveTo([x], [y]) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {number} xoffset X offset to move to, relative to the center of the element. * @param {number} yoffset Y offset to move to, relative to the center of the element. * @param {function} [callback] Optional callback function to be called when the command finishes. diff --git a/lib/api/element-commands/rightClick.js b/lib/api/element-commands/rightClick.js index 0acc20950d..7374d47adb 100644 --- a/lib/api/element-commands/rightClick.js +++ b/lib/api/element-commands/rightClick.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * // with explicit locate strategy * browser.rightClick('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.rightClick({ * selector: '#main ul li a', * index: 1, diff --git a/lib/api/element-commands/sendKeys.js b/lib/api/element-commands/sendKeys.js index 8a79299586..5f947d5726 100644 --- a/lib/api/element-commands/sendKeys.js +++ b/lib/api/element-commands/sendKeys.js @@ -23,7 +23,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .sendKeys(selector, inputValue, [callback]) * @syntax browser.element(selector).sendKeys(...keys) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string|array} inputValue The text to send to the element or key strokes. * @param {function} [callback] Optional callback function to be called when the command finishes. * @link https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebElement.html#sendKeys diff --git a/lib/api/element-commands/setAttribute.js b/lib/api/element-commands/setAttribute.js index ead41bf45b..eb24041397 100644 --- a/lib/api/element-commands/setAttribute.js +++ b/lib/api/element-commands/setAttribute.js @@ -15,7 +15,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.setAttribute({ * selector: '#login input[type=text]', * index: 1, @@ -35,7 +35,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .setAttribute(using, selector, attribute, value, [callback]) * @syntax browser.element(selector).setAttribute(name, value) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string} attribute The attribute name to set. * @param {string} value The attribute value name to set. * @param {function} callback Callback function which is called with the result value; not required if using `await` operator. diff --git a/lib/api/element-commands/setValue.js b/lib/api/element-commands/setValue.js index 832553ca74..ad91623424 100644 --- a/lib/api/element-commands/setValue.js +++ b/lib/api/element-commands/setValue.js @@ -23,7 +23,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @method setValue * @syntax .setValue(selector, inputValue, [callback]) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string|array} inputValue The text to send to the element or key strokes. * @param {function} [callback] Optional callback function to be called when the command finishes. * @link /#element-send-keys diff --git a/lib/api/element-commands/submitForm.js b/lib/api/element-commands/submitForm.js index 008d51889f..074c77e026 100644 --- a/lib/api/element-commands/submitForm.js +++ b/lib/api/element-commands/submitForm.js @@ -13,7 +13,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @syntax .submitForm(selector, [callback]) * @syntax .submitForm(using, selector, [callback]) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {function} [callback] Optional callback function to be called when the command finishes. * @jsonwire * @api protocol.elementinteraction diff --git a/lib/api/element-commands/takeElementScreenshot.js b/lib/api/element-commands/takeElementScreenshot.js index 1043edc4ff..3d403559f9 100644 --- a/lib/api/element-commands/takeElementScreenshot.js +++ b/lib/api/element-commands/takeElementScreenshot.js @@ -19,7 +19,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * }); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.takeElementScreenshot({ * selector: '#main ul li a', * index: 1 diff --git a/lib/api/element-commands/updateValue.js b/lib/api/element-commands/updateValue.js index 7c2c907d7a..5e975c3a80 100644 --- a/lib/api/element-commands/updateValue.js +++ b/lib/api/element-commands/updateValue.js @@ -23,7 +23,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @method updateValue * @syntax .updateValue(selector, inputValue, [callback]) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string|array} inputValue The text to send to the element or key strokes. * @param {function} [callback] Optional callback function to be called when the command finishes. * @link /#element-send-keys diff --git a/lib/api/element-commands/uploadFile.js b/lib/api/element-commands/uploadFile.js index ec715406f5..462a2f0e39 100644 --- a/lib/api/element-commands/uploadFile.js +++ b/lib/api/element-commands/uploadFile.js @@ -13,7 +13,7 @@ const BaseElementCommand = require('./_baseElementCommand.js'); * @method uploadFile * @syntax .uploadFile(selector, absoluteFilePath, [callback]) * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {string|array} inputValue The file path to upload. * @param {function} [callback] Optional callback function to be called when the command finishes. * @moreinfo www.selenium.dev/documentation/en/remote_webdriver/remote_webdriver_client/ diff --git a/lib/api/element-commands/waitForElementNotPresent.js b/lib/api/element-commands/waitForElementNotPresent.js index 813a0e9cc0..8e2e026cb2 100644 --- a/lib/api/element-commands/waitForElementNotPresent.js +++ b/lib/api/element-commands/waitForElementNotPresent.js @@ -71,7 +71,7 @@ const WaitForElement = require('./_waitFor.js'); * @syntax .waitForElementNotPresent([using], selector, [timeout], [pollInterval], [abortOnAssertionFailure], [callback], [message]); * @method waitForElementNotPresent * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {number} [time=waitForConditionTimeout] The total number of milliseconds to wait before failing. * @param {number} [poll=waitForConditionPollInterval] The number of milliseconds to wait between checks. You can use this only if you also specify the time parameter. * @param {boolean} [abortOnFailure=abortOnAssertionFailure] By the default if the element is not found the test will fail. Set this to false if you wish for the test to continue even if the assertion fails. To set this globally you can define a property `abortOnAssertionFailure` in your globals. diff --git a/lib/api/element-commands/waitForElementNotVisible.js b/lib/api/element-commands/waitForElementNotVisible.js index 26e276b301..815cad5c2e 100644 --- a/lib/api/element-commands/waitForElementNotVisible.js +++ b/lib/api/element-commands/waitForElementNotVisible.js @@ -71,7 +71,7 @@ const WaitForDisplayed = require('./_waitForDisplayed.js'); * @syntax .waitForElementNotVisible([using], selector, [timeout], [pollInterval], [abortOnAssertionFailure], [callback], [message]); * @method waitForElementNotVisible * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {number} [time=waitForConditionTimeout] The total number of milliseconds to wait before failing. * @param {number} [poll=waitForConditionPollInterval] The number of milliseconds to wait between checks. You can use this only if you also specify the time parameter. * @param {boolean} [abortOnFailure=abortOnAssertionFailure] By the default if the element is not found the test will fail. Set this to false if you wish for the test to continue even if the assertion fails. To set this globally you can define a property `abortOnAssertionFailure` in your globals. diff --git a/lib/api/element-commands/waitForElementPresent.js b/lib/api/element-commands/waitForElementPresent.js index c7381c7202..d7dec4cfe8 100644 --- a/lib/api/element-commands/waitForElementPresent.js +++ b/lib/api/element-commands/waitForElementPresent.js @@ -71,7 +71,7 @@ const WaitForElement = require('./_waitFor.js'); * @method waitForElementPresent * @syntax .waitForElementPresent([using], selector, [timeout], [pollInterval], [abortOnAssertionFailure], [callback], [message]); * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {number} [time=waitForConditionTimeout] The total number of milliseconds to wait before failing. * @param {number} [poll=waitForConditionPollInterval] The number of milliseconds to wait between checks. You can use this only if you also specify the time parameter. * @param {boolean} [abortOnFailure=abortOnAssertionFailure] By the default if the element is not found the test will fail. Set this to false if you wish for the test to continue even if the assertion fails. To set this globally you can define a property `abortOnAssertionFailure` in your globals. diff --git a/lib/api/element-commands/waitForElementVisible.js b/lib/api/element-commands/waitForElementVisible.js index a8470f8306..d69e141c85 100644 --- a/lib/api/element-commands/waitForElementVisible.js +++ b/lib/api/element-commands/waitForElementVisible.js @@ -73,7 +73,7 @@ const WaitForDisplayed = require('./_waitForDisplayed.js'); * @syntax .waitForElementVisible([using], selector, [timeout], [pollInterval], [abortOnAssertionFailure], [callback], [message]); * @method waitForElementVisible * @param {string} [using] The locator strategy to use. See [W3C Webdriver - locator strategies](https://www.w3.org/TR/webdriver/#locator-strategies) - * @param {string|object} selector 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|object} selector 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/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties). * @param {number} [time=waitForConditionTimeout] The total number of milliseconds to wait before failing. * @param {number} [poll=waitForConditionPollInterval] The number of milliseconds to wait between checks. You can use this only if you also specify the time parameter. * @param {boolean} [abortOnFailure=abortOnAssertionFailure] By the default if the element is not found the test will fail. Set this to false if you wish for the test to continue even if the assertion fails. To set this globally you can define a property `abortOnAssertionFailure` in your globals. diff --git a/types/index.d.ts b/types/index.d.ts index eeb3ef4792..566162646c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2606,7 +2606,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.clearValue('css selector', '#login input[type=text]'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.clearValue({ * selector: '#login input[type=text]', * index: 1, @@ -2657,7 +2657,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.click('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.click({ * selector: '#main ul li a', * index: 1, @@ -2710,7 +2710,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAttribute({ * selector: '#main ul li a.first', * index: 1, @@ -2761,7 +2761,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getCssProperty({ * selector: '#main ul li a.first', * index: 1, @@ -2817,7 +2817,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementSize({ * selector: '#login', * index: 1, @@ -2873,7 +2873,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getLocation({ * selector: '#login', * index: 1, @@ -2955,7 +2955,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getTagName({ * selector: '#login', * index: 1, @@ -3006,7 +3006,7 @@ export interface ElementCommands { * console.log('getText result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getText({ * selector: '#main ul li a', * index: 1 @@ -3061,7 +3061,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getValue({ * selector: '#login input[type=text]', * index: 1, @@ -3110,7 +3110,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.isVisible('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isVisible({ * selector: '#main ul li a', * index: 1, @@ -3162,7 +3162,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.isPresent('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isPresent({ * selector: '#main ul li a', * index: 1, @@ -3682,7 +3682,7 @@ export interface ElementCommands { * console.log('getAccessibleName result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAccessibleName({ * selector: '*[name="search"]', * index: 1 @@ -3738,7 +3738,7 @@ export interface ElementCommands { * console.log('getAriaRole result', result.value); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getAriaRole({ * selector: '*[name="search"]', * index: 1 @@ -3798,7 +3798,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementSize({ * selector: '#login', * index: 1, @@ -4234,7 +4234,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.getElementProperty({ * selector: '#login input[type=text]', * index: 1, @@ -4286,7 +4286,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.isEnabled('css selector', '#main select option.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isEnabled({ * selector: '#main ul li a', * index: 1, @@ -4338,7 +4338,7 @@ export interface ElementCommands { * // with explicit locate strategy * browser.isSelected('css selector', '#main select option.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.isSelected({ * selector: '#main ul li a', * index: 1, @@ -4391,7 +4391,7 @@ export interface ElementCommands { * console.log('result', result); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.setAttribute({ * selector: '#login input[type=text]', * index: 1, @@ -4487,7 +4487,7 @@ export interface ElementCommands { * }); * }); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.takeElementScreenshot({ * selector: '#main ul li a', * index: 1 @@ -7378,7 +7378,7 @@ export interface WebDriverProtocolUserActions { * // with explicit locate strategy * browser.doubleClick('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.doubleClick({ * selector: '#main ul li a', * index: 1, @@ -7430,7 +7430,7 @@ export interface WebDriverProtocolUserActions { * // with explicit locate strategy * browser.clickAndHold('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.clickAndHold({ * selector: '#main ul li a', * index: 1, @@ -7585,7 +7585,7 @@ export interface WebDriverProtocolUserActions { * // with explicit locate strategy * browser.rightClick('css selector', '#main ul li a.first'); * - * // with selector object - see https://nightwatchjs.org/guide#element-properties + * // with selector object - see https://nightwatchjs.org/guide/writing-tests/finding-interacting-with-dom-elements.html#postdoc-element-properties * browser.rightClick({ * selector: '#main ul li a', * index: 1,