webdriverio 7.20.7 → 7.20.8-alpha.504
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +3 -0
- package/build/cjs/index.d.ts.map +1 -0
- package/build/cjs/index.js +13 -0
- package/build/cjs/package.json +3 -0
- package/build/commands/browser/$$.d.ts +10 -1
- package/build/commands/browser/$$.d.ts.map +1 -1
- package/build/commands/browser/$$.js +16 -9
- package/build/commands/browser/$.js +8 -11
- package/build/commands/browser/action.d.ts +132 -0
- package/build/commands/browser/action.d.ts.map +1 -0
- package/build/commands/browser/action.js +13 -0
- package/build/commands/browser/actions.d.ts +29 -0
- package/build/commands/browser/actions.d.ts.map +1 -0
- package/build/commands/browser/actions.js +30 -0
- package/build/commands/browser/addCommand.d.ts +1 -1
- package/build/commands/browser/addCommand.js +1 -1
- package/build/commands/browser/call.d.ts +7 -5
- package/build/commands/browser/call.d.ts.map +1 -1
- package/build/commands/browser/call.js +8 -9
- package/build/commands/browser/custom$$.js +7 -10
- package/build/commands/browser/custom$.d.ts +1 -1
- package/build/commands/browser/custom$.js +6 -9
- package/build/commands/browser/debug.js +8 -14
- package/build/commands/browser/deleteCookies.d.ts +3 -3
- package/build/commands/browser/deleteCookies.js +4 -7
- package/build/commands/browser/execute.d.ts +2 -2
- package/build/commands/browser/execute.js +5 -8
- package/build/commands/browser/executeAsync.js +3 -6
- package/build/commands/browser/getCookies.d.ts +2 -2
- package/build/commands/browser/getCookies.js +3 -6
- package/build/commands/browser/getPuppeteer.d.ts +1 -1
- package/build/commands/browser/getPuppeteer.d.ts.map +1 -1
- package/build/commands/browser/getPuppeteer.js +14 -21
- package/build/commands/browser/getWindowSize.js +3 -6
- package/build/commands/browser/keys.d.ts +20 -10
- package/build/commands/browser/keys.d.ts.map +1 -1
- package/build/commands/browser/keys.js +29 -24
- package/build/commands/browser/mock.d.ts +5 -4
- package/build/commands/browser/mock.d.ts.map +1 -1
- package/build/commands/browser/mock.js +16 -22
- package/build/commands/browser/mockClearAll.js +5 -11
- package/build/commands/browser/mockRestoreAll.js +5 -11
- package/build/commands/browser/newWindow.js +5 -11
- package/build/commands/browser/pause.js +1 -4
- package/build/commands/browser/react$$.d.ts.map +1 -1
- package/build/commands/browser/react$$.js +16 -17
- package/build/commands/browser/react$.d.ts.map +1 -1
- package/build/commands/browser/react$.js +13 -14
- package/build/commands/browser/reloadSession.js +5 -12
- package/build/commands/browser/savePDF.d.ts +14 -14
- package/build/commands/browser/savePDF.js +21 -27
- package/build/commands/browser/saveRecordingScreen.js +6 -12
- package/build/commands/browser/saveScreenshot.js +6 -12
- package/build/commands/browser/scroll.d.ts +25 -0
- package/build/commands/browser/scroll.d.ts.map +1 -0
- package/build/commands/browser/scroll.js +41 -0
- package/build/commands/browser/setCookies.d.ts +1 -1
- package/build/commands/browser/setCookies.d.ts.map +1 -1
- package/build/commands/browser/setCookies.js +5 -7
- package/build/commands/browser/setTimeout.js +1 -4
- package/build/commands/browser/setWindowSize.js +3 -6
- package/build/commands/browser/switchWindow.js +1 -4
- package/build/commands/browser/throttle.js +3 -6
- package/build/commands/browser/touchAction.d.ts +1 -1
- package/build/commands/browser/touchAction.d.ts.map +1 -1
- package/build/commands/browser/touchAction.js +3 -6
- package/build/commands/browser/uploadFile.d.ts +1 -1
- package/build/commands/browser/uploadFile.d.ts.map +1 -1
- package/build/commands/browser/uploadFile.js +10 -15
- package/build/commands/browser/url.js +3 -6
- package/build/commands/browser/waitUntil.d.ts +1 -2
- package/build/commands/browser/waitUntil.d.ts.map +1 -1
- package/build/commands/browser/waitUntil.js +4 -11
- package/build/commands/browser.d.ts +37 -69
- package/build/commands/browser.d.ts.map +1 -1
- package/build/commands/browser.js +37 -44
- package/build/commands/constant.d.ts +1 -1
- package/build/commands/constant.d.ts.map +1 -1
- package/build/commands/constant.js +6 -12
- package/build/commands/element/$$.d.ts +1 -1
- package/build/commands/element/$$.d.ts.map +1 -1
- package/build/commands/element/$$.js +2 -7
- package/build/commands/element/$.d.ts +1 -1
- package/build/commands/element/$.d.ts.map +1 -1
- package/build/commands/element/$.js +2 -7
- package/build/commands/element/addValue.d.ts +10 -14
- package/build/commands/element/addValue.d.ts.map +1 -1
- package/build/commands/element/addValue.js +23 -27
- package/build/commands/element/clearValue.d.ts +1 -1
- package/build/commands/element/clearValue.js +2 -5
- package/build/commands/element/click.d.ts +1 -1
- package/build/commands/element/click.d.ts.map +1 -1
- package/build/commands/element/click.js +19 -34
- package/build/commands/element/custom$$.js +9 -11
- package/build/commands/element/custom$.js +8 -10
- package/build/commands/element/doubleClick.d.ts.map +1 -1
- package/build/commands/element/doubleClick.js +11 -17
- package/build/commands/element/dragAndDrop.d.ts.map +1 -1
- package/build/commands/element/dragAndDrop.js +13 -19
- package/build/commands/element/getAttribute.js +1 -4
- package/build/commands/element/getCSSProperty.d.ts +1 -1
- package/build/commands/element/getCSSProperty.d.ts.map +1 -1
- package/build/commands/element/getCSSProperty.js +7 -13
- package/build/commands/element/getComputedLabel.js +1 -4
- package/build/commands/element/getComputedRole.js +1 -4
- package/build/commands/element/getHTML.js +7 -13
- package/build/commands/element/getLocation.js +3 -5
- package/build/commands/element/getProperty.d.ts +5 -5
- package/build/commands/element/getProperty.d.ts.map +1 -1
- package/build/commands/element/getProperty.js +5 -11
- package/build/commands/element/getSize.js +3 -5
- package/build/commands/element/getTagName.js +1 -4
- package/build/commands/element/getText.js +1 -4
- package/build/commands/element/getValue.js +1 -4
- package/build/commands/element/isClickable.d.ts.map +1 -1
- package/build/commands/element/isClickable.js +10 -13
- package/build/commands/element/isDisplayed.js +9 -16
- package/build/commands/element/isDisplayedInViewport.js +7 -13
- package/build/commands/element/isEnabled.js +1 -4
- package/build/commands/element/isEqual.d.ts.map +1 -1
- package/build/commands/element/isEqual.js +9 -9
- package/build/commands/element/isExisting.js +1 -4
- package/build/commands/element/isFocused.js +7 -13
- package/build/commands/element/isSelected.js +1 -4
- package/build/commands/element/moveTo.d.ts.map +1 -1
- package/build/commands/element/moveTo.js +8 -13
- package/build/commands/element/nextElement.js +2 -5
- package/build/commands/element/parentElement.js +2 -5
- package/build/commands/element/previousElement.js +2 -5
- package/build/commands/element/react$$.d.ts.map +1 -1
- package/build/commands/element/react$$.js +16 -16
- package/build/commands/element/react$.d.ts.map +1 -1
- package/build/commands/element/react$.js +15 -14
- package/build/commands/element/saveScreenshot.js +6 -12
- package/build/commands/element/scrollIntoView.d.ts +4 -2
- package/build/commands/element/scrollIntoView.d.ts.map +1 -1
- package/build/commands/element/scrollIntoView.js +33 -12
- package/build/commands/element/selectByAttribute.js +3 -6
- package/build/commands/element/selectByIndex.js +3 -6
- package/build/commands/element/selectByVisibleText.js +3 -6
- package/build/commands/element/setValue.d.ts +13 -14
- package/build/commands/element/setValue.d.ts.map +1 -1
- package/build/commands/element/setValue.js +14 -17
- package/build/commands/element/shadow$$.d.ts +1 -1
- package/build/commands/element/shadow$$.d.ts.map +1 -1
- package/build/commands/element/shadow$$.js +3 -6
- package/build/commands/element/shadow$.js +3 -6
- package/build/commands/element/touchAction.js +3 -6
- package/build/commands/element/waitForClickable.js +1 -4
- package/build/commands/element/waitForDisplayed.js +1 -4
- package/build/commands/element/waitForEnabled.js +1 -4
- package/build/commands/element/waitForExist.js +1 -4
- package/build/commands/element/waitUntil.d.ts +2 -3
- package/build/commands/element/waitUntil.d.ts.map +1 -1
- package/build/commands/element/waitUntil.js +3 -9
- package/build/commands/element.d.ts +49 -99
- package/build/commands/element.d.ts.map +1 -1
- package/build/commands/element.js +49 -63
- package/build/constants.d.ts +67 -0
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +105 -12
- package/build/index.d.ts +65 -6
- package/build/index.d.ts.map +1 -1
- package/build/index.js +48 -86
- package/build/middlewares.d.ts +1 -1
- package/build/middlewares.js +11 -19
- package/build/multiremote.js +18 -24
- package/build/protocol-stub.d.ts.map +1 -1
- package/build/protocol-stub.js +4 -6
- package/build/scripts/getHTML.js +1 -4
- package/build/scripts/getProperty.d.ts +5 -5
- package/build/scripts/getProperty.d.ts.map +1 -1
- package/build/scripts/getProperty.js +1 -4
- package/build/scripts/isElementClickable.js +1 -4
- package/build/scripts/isElementDisplayed.js +2 -5
- package/build/scripts/isElementInViewport.js +1 -4
- package/build/scripts/isFocused.js +1 -4
- package/build/scripts/newWindow.js +1 -4
- package/build/scripts/resq.js +3 -9
- package/build/scripts/shadowFnFactory.js +2 -6
- package/build/types.d.ts +5 -9
- package/build/types.d.ts.map +1 -1
- package/build/types.js +1 -2
- package/build/utils/SevereServiceError.js +1 -4
- package/build/utils/Timer.d.ts.map +1 -1
- package/build/utils/Timer.js +13 -29
- package/build/utils/actions/base.d.ts +32 -0
- package/build/utils/actions/base.d.ts.map +1 -0
- package/build/utils/actions/base.js +66 -0
- package/build/utils/actions/index.d.ts +6 -0
- package/build/utils/actions/index.d.ts.map +1 -0
- package/build/utils/actions/index.js +5 -0
- package/build/utils/actions/key.d.ts +15 -0
- package/build/utils/actions/key.d.ts.map +1 -0
- package/build/utils/actions/key.js +22 -0
- package/build/utils/actions/pointer.d.ts +62 -0
- package/build/utils/actions/pointer.d.ts.map +1 -0
- package/build/utils/actions/pointer.js +76 -0
- package/build/utils/actions/wheel.d.ts +36 -0
- package/build/utils/actions/wheel.d.ts.map +1 -0
- package/build/utils/actions/wheel.js +20 -0
- package/build/utils/detectBackend.d.ts +1 -1
- package/build/utils/detectBackend.d.ts.map +1 -1
- package/build/utils/detectBackend.js +3 -7
- package/build/utils/findStrategy.d.ts.map +1 -1
- package/build/utils/findStrategy.js +50 -19
- package/build/utils/getElementObject.d.ts +1 -1
- package/build/utils/getElementObject.d.ts.map +1 -1
- package/build/utils/getElementObject.js +51 -32
- package/build/utils/implicitWait.js +3 -9
- package/build/utils/index.d.ts +8 -7
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +125 -148
- package/build/utils/interception/devtools.d.ts +1 -1
- package/build/utils/interception/devtools.d.ts.map +1 -1
- package/build/utils/interception/devtools.js +17 -36
- package/build/utils/interception/index.d.ts +2 -2
- package/build/utils/interception/index.d.ts.map +1 -1
- package/build/utils/interception/index.js +10 -13
- package/build/utils/interception/types.d.ts +1 -1
- package/build/utils/interception/types.d.ts.map +1 -1
- package/build/utils/interception/types.js +1 -2
- package/build/utils/interception/webdriver.d.ts +1 -1
- package/build/utils/interception/webdriver.d.ts.map +1 -1
- package/build/utils/interception/webdriver.js +6 -11
- package/build/utils/refetchElement.js +3 -9
- package/package.json +27 -17
- package/async.d.ts +0 -24
- package/sync.d.ts +0 -24
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const utils_1 = require("@wdio/utils");
|
|
8
|
-
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
|
|
9
|
-
const _1 = require(".");
|
|
10
|
-
const middlewares_1 = require("../middlewares");
|
|
11
|
-
const constants_1 = require("../constants");
|
|
1
|
+
import { webdriverMonad, wrapCommand } from '@wdio/utils';
|
|
2
|
+
import clone from 'lodash.clonedeep';
|
|
3
|
+
import { getBrowserObject, getPrototype as getWDIOPrototype, getElementFromResponse } from './index.js';
|
|
4
|
+
import { elementErrorHandler } from '../middlewares.js';
|
|
5
|
+
import { ELEMENT_KEY } from '../constants.js';
|
|
6
|
+
import * as browserCommands from '../commands/browser.js';
|
|
12
7
|
/**
|
|
13
8
|
* transforms a findElement response into a WDIO element
|
|
14
9
|
* @param {String} selector selector that was used to query the element
|
|
15
10
|
* @param {Object} res findElement response
|
|
16
11
|
* @return {Object} WDIO element object
|
|
17
12
|
*/
|
|
18
|
-
const getElement = function findElement(selector, res, isReactElement = false) {
|
|
19
|
-
const browser =
|
|
13
|
+
export const getElement = function findElement(selector, res, isReactElement = false) {
|
|
14
|
+
const browser = getBrowserObject(this);
|
|
15
|
+
const browserCommandKeys = Object.keys(browserCommands);
|
|
20
16
|
const propertiesObject = {
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
/**
|
|
18
|
+
* filter out browser commands from object
|
|
19
|
+
*/
|
|
20
|
+
...(Object.entries(clone(browser.__propertiesObject__)).reduce((commands, [name, descriptor]) => {
|
|
21
|
+
if (!browserCommandKeys.includes(name)) {
|
|
22
|
+
commands[name] = descriptor;
|
|
23
|
+
}
|
|
24
|
+
return commands;
|
|
25
|
+
}, {})),
|
|
26
|
+
...getWDIOPrototype('element'),
|
|
23
27
|
scope: { value: 'element' }
|
|
24
28
|
};
|
|
25
|
-
const element =
|
|
26
|
-
const elementId =
|
|
29
|
+
const element = webdriverMonad(this.options, (client) => {
|
|
30
|
+
const elementId = getElementFromResponse(res);
|
|
27
31
|
if (elementId) {
|
|
28
32
|
/**
|
|
29
33
|
* set elementId for easy access
|
|
@@ -33,7 +37,7 @@ const getElement = function findElement(selector, res, isReactElement = false) {
|
|
|
33
37
|
* set element id with proper key so element can be passed into execute commands
|
|
34
38
|
*/
|
|
35
39
|
if (this.isW3C) {
|
|
36
|
-
client[
|
|
40
|
+
client[ELEMENT_KEY] = elementId;
|
|
37
41
|
}
|
|
38
42
|
else {
|
|
39
43
|
client.ELEMENT = elementId;
|
|
@@ -48,31 +52,45 @@ const getElement = function findElement(selector, res, isReactElement = false) {
|
|
|
48
52
|
client.isReactElement = isReactElement;
|
|
49
53
|
return client;
|
|
50
54
|
}, propertiesObject);
|
|
51
|
-
const elementInstance = element(this.sessionId,
|
|
55
|
+
const elementInstance = element(this.sessionId, elementErrorHandler(wrapCommand));
|
|
52
56
|
const origAddCommand = elementInstance.addCommand.bind(elementInstance);
|
|
53
57
|
elementInstance.addCommand = (name, fn) => {
|
|
54
58
|
browser.__propertiesObject__[name] = { value: fn };
|
|
55
|
-
origAddCommand(name,
|
|
59
|
+
origAddCommand(name, fn);
|
|
56
60
|
};
|
|
57
61
|
return elementInstance;
|
|
58
62
|
};
|
|
59
|
-
exports.getElement = getElement;
|
|
60
63
|
/**
|
|
61
64
|
* transforms a findElements response into an array of WDIO elements
|
|
62
65
|
* @param {String} selector selector that was used to query the element
|
|
63
66
|
* @param {Object} res findElements response
|
|
64
67
|
* @return {Array} array of WDIO elements
|
|
65
68
|
*/
|
|
66
|
-
const getElements = function getElements(selector, elemResponse, isReactElement = false) {
|
|
67
|
-
const browser =
|
|
69
|
+
export const getElements = function getElements(selector, elemResponse, isReactElement = false) {
|
|
70
|
+
const browser = getBrowserObject(this);
|
|
71
|
+
const browserCommandKeys = Object.keys(browserCommands);
|
|
68
72
|
const propertiesObject = {
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
/**
|
|
74
|
+
* filter out browser commands from object
|
|
75
|
+
*/
|
|
76
|
+
...(Object.entries(clone(browser.__propertiesObject__)).reduce((commands, [name, descriptor]) => {
|
|
77
|
+
if (!browserCommandKeys.includes(name)) {
|
|
78
|
+
commands[name] = descriptor;
|
|
79
|
+
}
|
|
80
|
+
return commands;
|
|
81
|
+
}, {})),
|
|
82
|
+
...getWDIOPrototype('element')
|
|
71
83
|
};
|
|
72
84
|
const elements = elemResponse.map((res, i) => {
|
|
85
|
+
/**
|
|
86
|
+
* if we already deal with an element, just return it
|
|
87
|
+
*/
|
|
88
|
+
if (res.selector) {
|
|
89
|
+
return res;
|
|
90
|
+
}
|
|
73
91
|
propertiesObject.scope = { value: 'element' };
|
|
74
|
-
const element =
|
|
75
|
-
const elementId =
|
|
92
|
+
const element = webdriverMonad(this.options, (client) => {
|
|
93
|
+
const elementId = getElementFromResponse(res);
|
|
76
94
|
if (elementId) {
|
|
77
95
|
/**
|
|
78
96
|
* set elementId for easy access
|
|
@@ -81,27 +99,28 @@ const getElements = function getElements(selector, elemResponse, isReactElement
|
|
|
81
99
|
/**
|
|
82
100
|
* set element id with proper key so element can be passed into execute commands
|
|
83
101
|
*/
|
|
84
|
-
const elementKey = this.isW3C ?
|
|
102
|
+
const elementKey = this.isW3C ? ELEMENT_KEY : 'ELEMENT';
|
|
85
103
|
client[elementKey] = elementId;
|
|
86
104
|
}
|
|
87
105
|
else {
|
|
88
106
|
client.error = res;
|
|
89
107
|
}
|
|
90
|
-
client.selector = selector
|
|
108
|
+
client.selector = Array.isArray(selector)
|
|
109
|
+
? selector[i].selector
|
|
110
|
+
: selector;
|
|
91
111
|
client.parent = this;
|
|
92
112
|
client.index = i;
|
|
93
113
|
client.emit = this.emit.bind(this);
|
|
94
114
|
client.isReactElement = isReactElement;
|
|
95
115
|
return client;
|
|
96
116
|
}, propertiesObject);
|
|
97
|
-
const elementInstance = element(this.sessionId,
|
|
117
|
+
const elementInstance = element(this.sessionId, elementErrorHandler(wrapCommand));
|
|
98
118
|
const origAddCommand = elementInstance.addCommand.bind(elementInstance);
|
|
99
119
|
elementInstance.addCommand = (name, fn) => {
|
|
100
120
|
browser.__propertiesObject__[name] = { value: fn };
|
|
101
|
-
origAddCommand(name,
|
|
121
|
+
origAddCommand(name, fn);
|
|
102
122
|
};
|
|
103
123
|
return elementInstance;
|
|
104
124
|
});
|
|
105
125
|
return elements;
|
|
106
126
|
};
|
|
107
|
-
exports.getElements = getElements;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
|
-
const log = (0, logger_1.default)('webdriverio');
|
|
1
|
+
import logger from '@wdio/logger';
|
|
2
|
+
const log = logger('webdriverio');
|
|
8
3
|
/**
|
|
9
4
|
* wait on element if:
|
|
10
5
|
* - elementId couldn't be fetched in the first place
|
|
11
6
|
* - command is not explicit wait command for existance or displayedness
|
|
12
7
|
*/
|
|
13
|
-
async function implicitWait(currentElement, commandName) {
|
|
8
|
+
export default async function implicitWait(currentElement, commandName) {
|
|
14
9
|
if (!currentElement.elementId && !commandName.match(/(waitUntil|waitFor|isExisting|is?\w+Displayed|is?\w+Clickable)/)) {
|
|
15
10
|
log.debug(`command ${commandName} was called on an element ("${currentElement.selector}") ` +
|
|
16
11
|
'that wasn\'t found, waiting for it...');
|
|
@@ -36,4 +31,3 @@ async function implicitWait(currentElement, commandName) {
|
|
|
36
31
|
}
|
|
37
32
|
return currentElement;
|
|
38
33
|
}
|
|
39
|
-
exports.default = implicitWait;
|
package/build/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ElementReference } from '@wdio/protocols';
|
|
2
2
|
import type { Options } from '@wdio/types';
|
|
3
3
|
import type { ElementArray, Selector, ParsedCSSValue, CustomLocatorReturnValue } from '../types';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
__wdio_element: Record<string, HTMLElement>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
/**
|
|
5
10
|
* enhances objects with element commands
|
|
6
11
|
*/
|
|
@@ -15,10 +20,6 @@ export declare const getElementFromResponse: (res: ElementReference) => any;
|
|
|
15
20
|
* traverse up the scope chain until browser element was reached
|
|
16
21
|
*/
|
|
17
22
|
export declare function getBrowserObject(elem: WebdriverIO.Element | WebdriverIO.Browser): WebdriverIO.Browser;
|
|
18
|
-
/**
|
|
19
|
-
* transform whatever value is into an array of char strings
|
|
20
|
-
*/
|
|
21
|
-
export declare function transformToCharString(value: any, translateToUnicode?: boolean): string[];
|
|
22
23
|
/**
|
|
23
24
|
* parse css values to a better format
|
|
24
25
|
* @param {Object} cssPropertyValue result of WebDriver call
|
|
@@ -31,7 +32,7 @@ export declare function parseCSS(cssPropertyValue: string, cssProperty?: string)
|
|
|
31
32
|
* @param {String} value text
|
|
32
33
|
* @return {Array} set of characters or unicode symbols
|
|
33
34
|
*/
|
|
34
|
-
export declare function checkUnicode(value: string, isDevTools?: boolean): string[];
|
|
35
|
+
export declare function checkUnicode(value: string, isDevTools?: boolean, platformName?: string): string[];
|
|
35
36
|
/**
|
|
36
37
|
* logic to find an element
|
|
37
38
|
*/
|
|
@@ -79,7 +80,7 @@ export declare function addLocatorStrategyHandler(scope: WebdriverIO.Browser | W
|
|
|
79
80
|
* @param {Array} props additional properties required to fetch elements again
|
|
80
81
|
* @returns {object[]} elements
|
|
81
82
|
*/
|
|
82
|
-
export declare const enhanceElementsArray: (elements: ElementArray, parent: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector, foundWith?: string, props?: any[]) => ElementArray;
|
|
83
|
+
export declare const enhanceElementsArray: (elements: ElementArray, parent: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector | ElementReference[] | WebdriverIO.Element[], foundWith?: string, props?: any[]) => ElementArray;
|
|
83
84
|
/**
|
|
84
85
|
* is protocol stub
|
|
85
86
|
* @param {string} automationProtocol
|
|
@@ -92,7 +93,7 @@ export declare const getAutomationProtocol: (config: Options.WebdriverIO | Optio
|
|
|
92
93
|
*
|
|
93
94
|
* NOTE: this method is executed twice when running the WDIO testrunner
|
|
94
95
|
*/
|
|
95
|
-
export declare const updateCapabilities: (params: Options.WebdriverIO | Options.Testrunner, automationProtocol?: Options.SupportedProtocols) =>
|
|
96
|
+
export declare const updateCapabilities: (params: Options.WebdriverIO | Options.Testrunner, automationProtocol?: Options.SupportedProtocols) => void;
|
|
96
97
|
/**
|
|
97
98
|
* compare if an object (`base`) contains the same values as another object (`match`)
|
|
98
99
|
* @param {object} base object to compare to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAA;AAMxD,OAAO,KAAK,EAAE,YAAY,EAAmB,QAAQ,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAMjH,OAAO,CAAC,MAAM,CAAC;IACX,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