webdriverio 7.14.1 → 7.16.3
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/commands/browser/$$.js +1 -1
- package/build/commands/browser/custom$$.js +1 -1
- package/build/commands/browser/debug.js +1 -1
- package/build/commands/browser/execute.js +1 -1
- package/build/commands/browser/executeAsync.js +1 -1
- package/build/commands/browser/getPuppeteer.js +1 -1
- package/build/commands/browser/getWindowSize.js +1 -1
- package/build/commands/browser/keys.js +2 -2
- package/build/commands/browser/mock.js +1 -1
- package/build/commands/browser/mockClearAll.js +1 -1
- package/build/commands/browser/mockRestoreAll.js +1 -1
- package/build/commands/browser/react$$.js +1 -1
- package/build/commands/browser/reloadSession.js +1 -1
- package/build/commands/browser/savePDF.js +2 -2
- package/build/commands/browser/saveRecordingScreen.js +2 -2
- package/build/commands/browser/saveScreenshot.js +2 -2
- package/build/commands/browser/setWindowSize.js +1 -1
- package/build/commands/browser/throttle.js +1 -1
- package/build/commands/browser/uploadFile.js +1 -1
- package/build/commands/browser/url.js +1 -1
- package/build/commands/constant.js +3 -3
- package/build/commands/element/addValue.js +3 -3
- package/build/commands/element/click.js +1 -1
- package/build/commands/element/custom$$.js +2 -2
- package/build/commands/element/custom$.js +1 -1
- package/build/commands/element/getCSSProperty.js +2 -2
- package/build/commands/element/getHTML.js +1 -1
- package/build/commands/element/getLocation.js +1 -1
- package/build/commands/element/getProperty.d.ts +8 -8
- package/build/commands/element/getProperty.d.ts.map +1 -1
- package/build/commands/element/getProperty.js +1 -1
- package/build/commands/element/getSize.js +1 -1
- package/build/commands/element/isClickable.js +1 -1
- package/build/commands/element/isDisplayed.js +2 -2
- package/build/commands/element/isDisplayedInViewport.js +1 -1
- package/build/commands/element/isEqual.js +1 -1
- package/build/commands/element/isFocused.js +1 -1
- package/build/commands/element/moveTo.js +2 -2
- package/build/commands/element/react$$.js +1 -1
- package/build/commands/element/saveScreenshot.js +2 -2
- package/build/commands/element/selectByAttribute.js +1 -1
- package/build/commands/element/selectByIndex.js +1 -1
- package/build/commands/element/selectByVisibleText.js +1 -1
- package/build/commands/element/shadow$$.js +1 -1
- package/build/commands/element/shadow$.js +1 -1
- package/build/constants.js +1 -1
- package/build/index.js +19 -19
- package/build/middlewares.js +6 -6
- package/build/multiremote.js +5 -5
- package/build/protocol-stub.js +1 -1
- package/build/scripts/getProperty.d.ts +8 -8
- package/build/scripts/getProperty.d.ts.map +1 -1
- package/build/utils/Timer.js +1 -1
- package/build/utils/findStrategy.js +1 -1
- package/build/utils/getElementObject.js +14 -14
- package/build/utils/implicitWait.js +1 -1
- package/build/utils/index.js +18 -18
- package/build/utils/interception/devtools.js +3 -3
- package/build/utils/interception/index.js +1 -1
- package/build/utils/interception/webdriver.d.ts.map +1 -1
- package/build/utils/refetchElement.js +1 -1
- package/package.json +13 -13
|
@@ -52,6 +52,6 @@ const getElementObject_1 = require("../../utils/getElementObject");
|
|
|
52
52
|
async function $$(selector) {
|
|
53
53
|
const res = await utils_1.findElements.call(this, selector);
|
|
54
54
|
const elements = await getElementObject_1.getElements.call(this, selector, res);
|
|
55
|
-
return utils_1.enhanceElementsArray(elements, this, selector);
|
|
55
|
+
return (0, utils_1.enhanceElementsArray)(elements, this, selector);
|
|
56
56
|
}
|
|
57
57
|
exports.default = $$;
|
|
@@ -42,6 +42,6 @@ async function custom$$(strategyName, ...strategyArguments) {
|
|
|
42
42
|
}
|
|
43
43
|
res = res.filter(el => !!el && typeof el[constants_1.ELEMENT_KEY] === 'string');
|
|
44
44
|
const elements = res.length ? await getElementObject_1.getElements.call(this, strategy, res) : [];
|
|
45
|
-
return utils_1.enhanceElementsArray(elements, this, strategy, 'custom$$', [strategyArguments]);
|
|
45
|
+
return (0, utils_1.enhanceElementsArray)(elements, this, strategy, 'custom$$', [strategyArguments]);
|
|
46
46
|
}
|
|
47
47
|
exports.default = custom$$;
|
|
@@ -50,6 +50,6 @@ function execute(script, ...args) {
|
|
|
50
50
|
if (typeof script === 'function') {
|
|
51
51
|
script = `return (${script}).apply(null, arguments)`;
|
|
52
52
|
}
|
|
53
|
-
return this.executeScript(script, utils_1.verifyArgsAndStripIfElement(args));
|
|
53
|
+
return this.executeScript(script, (0, utils_1.verifyArgsAndStripIfElement)(args));
|
|
54
54
|
}
|
|
55
55
|
exports.default = execute;
|
|
@@ -58,6 +58,6 @@ function executeAsync(script, ...args) {
|
|
|
58
58
|
if (typeof script === 'function') {
|
|
59
59
|
script = `return (${script}).apply(null, arguments)`;
|
|
60
60
|
}
|
|
61
|
-
return this.executeAsyncScript(script, utils_1.verifyArgsAndStripIfElement(args));
|
|
61
|
+
return this.executeAsyncScript(script, (0, utils_1.verifyArgsAndStripIfElement)(args));
|
|
62
62
|
}
|
|
63
63
|
exports.default = executeAsync;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const puppeteer_core_1 = __importDefault(require("puppeteer-core"));
|
|
7
7
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
8
8
|
const constants_1 = require("../../constants");
|
|
9
|
-
const log = logger_1.default('webdriverio');
|
|
9
|
+
const log = (0, logger_1.default)('webdriverio');
|
|
10
10
|
/**
|
|
11
11
|
* Get the [Puppeteer Browser instance](https://pptr.dev/#?product=Puppeteer&version=v5.1.0&show=api-class-browser)
|
|
12
12
|
* to run commands with Puppeteer. Note that all Puppeteer commands are
|
|
@@ -33,12 +33,12 @@ function keys(value) {
|
|
|
33
33
|
* replace key with corresponding unicode character
|
|
34
34
|
*/
|
|
35
35
|
if (typeof value === 'string') {
|
|
36
|
-
keySequence = utils_1.checkUnicode(value, this.isDevTools);
|
|
36
|
+
keySequence = (0, utils_1.checkUnicode)(value, this.isDevTools);
|
|
37
37
|
}
|
|
38
38
|
else if (Array.isArray(value)) {
|
|
39
39
|
const charArray = value;
|
|
40
40
|
for (const charSet of charArray) {
|
|
41
|
-
keySequence = keySequence.concat(utils_1.checkUnicode(charSet, this.isDevTools));
|
|
41
|
+
keySequence = keySequence.concat((0, utils_1.checkUnicode)(charSet, this.isDevTools));
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
@@ -121,7 +121,7 @@ async function mock(url, filterOptions) {
|
|
|
121
121
|
if (!this.puppeteer) {
|
|
122
122
|
throw new Error('No Puppeteer connection could be established which is required to use this command');
|
|
123
123
|
}
|
|
124
|
-
const browser = utils_1.getBrowserObject(this);
|
|
124
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
125
125
|
const handle = await browser.getWindowHandle();
|
|
126
126
|
if (!exports.SESSION_MOCKS[handle]) {
|
|
127
127
|
exports.SESSION_MOCKS[handle] = new Set();
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
7
|
const mock_1 = require("./mock");
|
|
8
|
-
const log = logger_1.default('webdriverio:mockClearAll');
|
|
8
|
+
const log = (0, logger_1.default)('webdriverio:mockClearAll');
|
|
9
9
|
/**
|
|
10
10
|
* Resets all information stored in all registered mocks of the session.
|
|
11
11
|
*
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
7
|
const mock_1 = require("./mock");
|
|
8
|
-
const log = logger_1.default('webdriverio:mockRestoreAll');
|
|
8
|
+
const log = (0, logger_1.default)('webdriverio:mockRestoreAll');
|
|
9
9
|
/**
|
|
10
10
|
* Restores all mock information and behavior stored in all registered
|
|
11
11
|
* mocks of the session.
|
|
@@ -46,6 +46,6 @@ async function react$$(selector, { props = {}, state = {} } = {}) {
|
|
|
46
46
|
await this.execute(resq_1.waitToLoadReact);
|
|
47
47
|
const res = await this.execute(resq_1.react$$, selector, props, state);
|
|
48
48
|
const elements = await getElementObject_1.getElements.call(this, selector, res, true);
|
|
49
|
-
return utils_1.enhanceElementsArray(elements, this, selector, 'react$$', [props, state]);
|
|
49
|
+
return (0, utils_1.enhanceElementsArray)(elements, this, selector, 'react$$', [props, state]);
|
|
50
50
|
}
|
|
51
51
|
exports.default = react$$;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
|
-
const log = logger_1.default('webdriverio');
|
|
7
|
+
const log = (0, logger_1.default)('webdriverio');
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* Creates a new Selenium session with your current capabilities. This is useful if you
|
|
@@ -41,8 +41,8 @@ async function savePDF(filepath, options) {
|
|
|
41
41
|
if (typeof filepath != 'string' || !filepath.endsWith('.pdf')) {
|
|
42
42
|
throw new Error('savePDF expects a filepath of type string and ".pdf" file ending');
|
|
43
43
|
}
|
|
44
|
-
const absoluteFilepath = utils_1.getAbsoluteFilepath(filepath);
|
|
45
|
-
utils_1.assertDirectoryExists(absoluteFilepath);
|
|
44
|
+
const absoluteFilepath = (0, utils_1.getAbsoluteFilepath)(filepath);
|
|
45
|
+
(0, utils_1.assertDirectoryExists)(absoluteFilepath);
|
|
46
46
|
const pdf = await this.printPage(options === null || options === void 0 ? void 0 : options.orientation, options === null || options === void 0 ? void 0 : options.scale, options === null || options === void 0 ? void 0 : options.background, options === null || options === void 0 ? void 0 : options.width, options === null || options === void 0 ? void 0 : options.height, options === null || options === void 0 ? void 0 : options.top, options === null || options === void 0 ? void 0 : options.bottom, options === null || options === void 0 ? void 0 : options.left, options === null || options === void 0 ? void 0 : options.right, options === null || options === void 0 ? void 0 : options.shrinkToFit, options === null || options === void 0 ? void 0 : options.pageRanges);
|
|
47
47
|
const page = Buffer.from(pdf, 'base64');
|
|
48
48
|
fs_1.default.writeFileSync(absoluteFilepath, page);
|
|
@@ -37,8 +37,8 @@ async function saveRecordingScreen(filepath) {
|
|
|
37
37
|
if (typeof filepath !== 'string') {
|
|
38
38
|
throw new Error('saveRecordingScreen expects a filepath');
|
|
39
39
|
}
|
|
40
|
-
const absoluteFilepath = utils_1.getAbsoluteFilepath(filepath);
|
|
41
|
-
utils_1.assertDirectoryExists(absoluteFilepath);
|
|
40
|
+
const absoluteFilepath = (0, utils_1.getAbsoluteFilepath)(filepath);
|
|
41
|
+
(0, utils_1.assertDirectoryExists)(absoluteFilepath);
|
|
42
42
|
const videoBuffer = await this.stopRecordingScreen();
|
|
43
43
|
const video = Buffer.from(videoBuffer, 'base64');
|
|
44
44
|
fs_1.default.writeFileSync(absoluteFilepath, video);
|
|
@@ -31,8 +31,8 @@ async function saveScreenshot(filepath) {
|
|
|
31
31
|
if (typeof filepath !== 'string' || !filepath.endsWith('.png')) {
|
|
32
32
|
throw new Error('saveScreenshot expects a filepath of type string and ".png" file ending');
|
|
33
33
|
}
|
|
34
|
-
const absoluteFilepath = utils_1.getAbsoluteFilepath(filepath);
|
|
35
|
-
utils_1.assertDirectoryExists(absoluteFilepath);
|
|
34
|
+
const absoluteFilepath = (0, utils_1.getAbsoluteFilepath)(filepath);
|
|
35
|
+
(0, utils_1.assertDirectoryExists)(absoluteFilepath);
|
|
36
36
|
const screenBuffer = await this.takeScreenshot();
|
|
37
37
|
const screenshot = Buffer.from(screenBuffer, 'base64');
|
|
38
38
|
fs_1.default.writeFileSync(absoluteFilepath, screenshot);
|
|
@@ -34,7 +34,7 @@ async function setWindowSize(width, height) {
|
|
|
34
34
|
if (width < minWindowSize || width > maxWindowSize || height < minWindowSize || height > maxWindowSize) {
|
|
35
35
|
throw new Error('setWindowSize expects width and height to be a number in the 0 to 2^31 − 1 range');
|
|
36
36
|
}
|
|
37
|
-
const browser = utils_1.getBrowserObject(this);
|
|
37
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
38
38
|
if (!browser.isW3C) {
|
|
39
39
|
return browser._setWindowSize(width, height);
|
|
40
40
|
}
|
|
@@ -124,7 +124,7 @@ async function throttle(params) {
|
|
|
124
124
|
* use WebDriver extension if connected with cloud service
|
|
125
125
|
*/
|
|
126
126
|
if (this.isSauce) {
|
|
127
|
-
const browser = utils_1.getBrowserObject(this);
|
|
127
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
128
128
|
await browser.throttleNetwork(params);
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -52,7 +52,7 @@ async function uploadFile(localPath) {
|
|
|
52
52
|
let zipData = [];
|
|
53
53
|
let source = fs_1.default.createReadStream(localPath);
|
|
54
54
|
return new Promise((resolve, reject) => {
|
|
55
|
-
archiver_1.default('zip')
|
|
55
|
+
(0, archiver_1.default)('zip')
|
|
56
56
|
.on('error', (err) => reject(err))
|
|
57
57
|
.on('data', (data) => zipData.push(data))
|
|
58
58
|
.on('end', () => this.file(Buffer.concat(zipData).toString('base64')).then((localPath) => resolve(localPath), reject))
|
|
@@ -44,6 +44,6 @@ function url(path) {
|
|
|
44
44
|
if (typeof this.options.baseUrl === 'string' && this.options.baseUrl) {
|
|
45
45
|
path = (new URL(path, this.options.baseUrl)).href;
|
|
46
46
|
}
|
|
47
|
-
return this.navigateTo(utils_1.validateUrl(path));
|
|
47
|
+
return this.navigateTo((0, utils_1.validateUrl)(path));
|
|
48
48
|
}
|
|
49
49
|
exports.default = url;
|
|
@@ -10,7 +10,7 @@ const ACCEPTED_OPTIONS = ['x', 'y', 'element'];
|
|
|
10
10
|
const formatArgs = function (scope, actions) {
|
|
11
11
|
return actions.map((action) => {
|
|
12
12
|
if (Array.isArray(action)) {
|
|
13
|
-
return exports.formatArgs(scope, action);
|
|
13
|
+
return (0, exports.formatArgs)(scope, action);
|
|
14
14
|
}
|
|
15
15
|
if (typeof action === 'string') {
|
|
16
16
|
action = { action };
|
|
@@ -80,12 +80,12 @@ const touchAction = function (actions) {
|
|
|
80
80
|
if (!Array.isArray(actions)) {
|
|
81
81
|
actions = [actions];
|
|
82
82
|
}
|
|
83
|
-
const formattedAction = exports.formatArgs(this, actions);
|
|
83
|
+
const formattedAction = (0, exports.formatArgs)(this, actions);
|
|
84
84
|
const protocolCommand = Array.isArray(actions[0])
|
|
85
85
|
// cast old JSONWP
|
|
86
86
|
? this.multiTouchPerform.bind(this)
|
|
87
87
|
: this.touchPerform.bind(this);
|
|
88
|
-
formattedAction.forEach((params) => exports.validateParameters(params));
|
|
88
|
+
formattedAction.forEach((params) => (0, exports.validateParameters)(params));
|
|
89
89
|
return protocolCommand(formattedAction);
|
|
90
90
|
};
|
|
91
91
|
exports.touchAction = touchAction;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
8
|
-
const log = logger_1.default('addValue');
|
|
8
|
+
const log = (0, logger_1.default)('addValue');
|
|
9
9
|
const isNumberOrString = (input) => typeof input === 'string' || typeof input === 'number';
|
|
10
10
|
const isValidType = (value) => (isNumberOrString(value) ||
|
|
11
11
|
Array.isArray(value) && value.every((item) => isNumberOrString(item)));
|
|
@@ -41,8 +41,8 @@ function addValue(value, { translateToUnicode = true } = {}) {
|
|
|
41
41
|
log.warn('@deprecated: support for type "string", "number" or "Array<string | number>" is deprecated');
|
|
42
42
|
}
|
|
43
43
|
if (!this.isW3C) {
|
|
44
|
-
return this.elementSendKeys(this.elementId, utils_1.transformToCharString(value, translateToUnicode));
|
|
44
|
+
return this.elementSendKeys(this.elementId, (0, utils_1.transformToCharString)(value, translateToUnicode));
|
|
45
45
|
}
|
|
46
|
-
return this.elementSendKeys(this.elementId, utils_1.transformToCharString(value, translateToUnicode).join(''));
|
|
46
|
+
return this.elementSendKeys(this.elementId, (0, utils_1.transformToCharString)(value, translateToUnicode).join(''));
|
|
47
47
|
}
|
|
48
48
|
exports.default = addValue;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
7
|
-
const log = logger_1.default('webdriverio/click');
|
|
7
|
+
const log = (0, logger_1.default)('webdriverio/click');
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* Click on an element.
|
|
@@ -28,7 +28,7 @@ const constants_1 = require("../../constants");
|
|
|
28
28
|
* @return {ElementArray}
|
|
29
29
|
*/
|
|
30
30
|
async function custom$$(strategyName, strategyArguments) {
|
|
31
|
-
const browserObject = utils_1.getBrowserObject(this);
|
|
31
|
+
const browserObject = (0, utils_1.getBrowserObject)(this);
|
|
32
32
|
const strategy = browserObject.strategies.get(strategyName);
|
|
33
33
|
if (!strategy) {
|
|
34
34
|
/* istanbul ignore next */
|
|
@@ -52,6 +52,6 @@ async function custom$$(strategyName, strategyArguments) {
|
|
|
52
52
|
}
|
|
53
53
|
res = res.filter((el) => !!el && typeof el[constants_1.ELEMENT_KEY] === 'string');
|
|
54
54
|
const elements = res.length ? await getElementObject_1.getElements.call(this, strategy, res) : [];
|
|
55
|
-
return utils_1.enhanceElementsArray(elements, this, strategy, 'custom$$', [strategyArguments]);
|
|
55
|
+
return (0, utils_1.enhanceElementsArray)(elements, this, strategy, 'custom$$', [strategyArguments]);
|
|
56
56
|
}
|
|
57
57
|
exports.default = custom$$;
|
|
@@ -28,7 +28,7 @@ const constants_1 = require("../../constants");
|
|
|
28
28
|
* @return {Element}
|
|
29
29
|
*/
|
|
30
30
|
async function custom$(strategyName, strategyArguments) {
|
|
31
|
-
const browserObject = utils_1.getBrowserObject(this);
|
|
31
|
+
const browserObject = (0, utils_1.getBrowserObject)(this);
|
|
32
32
|
const strategy = browserObject.strategies.get(strategyName);
|
|
33
33
|
if (!strategy) {
|
|
34
34
|
throw Error('No strategy found for ' + strategyName);
|
|
@@ -83,7 +83,7 @@ async function getCSSProperty(cssProperty) {
|
|
|
83
83
|
*/
|
|
84
84
|
if (!css_shorthand_properties_1.default.isShorthand(cssProperty)) {
|
|
85
85
|
const cssValue = await this.getElementCSSValue(this.elementId, cssProperty);
|
|
86
|
-
return utils_1.parseCSS(cssValue, cssProperty);
|
|
86
|
+
return (0, utils_1.parseCSS)(cssValue, cssProperty);
|
|
87
87
|
}
|
|
88
88
|
const properties = css_shorthand_properties_1.default.expand(cssProperty);
|
|
89
89
|
let cssValues = await Promise.all(properties.map((prop) => this.getElementCSSValue(this.elementId, prop)));
|
|
@@ -103,6 +103,6 @@ async function getCSSProperty(cssProperty) {
|
|
|
103
103
|
}
|
|
104
104
|
cssValues = cssValues.slice(0, cssValues.length / 2);
|
|
105
105
|
}
|
|
106
|
-
return utils_1.parseCSS(cssValues.join(' '), cssProperty);
|
|
106
|
+
return (0, utils_1.parseCSS)(cssValues.join(' '), cssProperty);
|
|
107
107
|
}
|
|
108
108
|
exports.default = getCSSProperty;
|
|
@@ -37,7 +37,7 @@ const getHTML_1 = __importDefault(require("../../scripts/getHTML"));
|
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
39
|
function getHTML(includeSelectorTag = true) {
|
|
40
|
-
const browser = utils_1.getBrowserObject(this);
|
|
40
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
41
41
|
return browser.execute(getHTML_1.default, {
|
|
42
42
|
[constants_1.ELEMENT_KEY]: this.elementId,
|
|
43
43
|
ELEMENT: this.elementId // jsonwp compatible
|
|
@@ -31,7 +31,7 @@ const utils_1 = require("../../utils");
|
|
|
31
31
|
async function getLocation(prop) {
|
|
32
32
|
let location = {};
|
|
33
33
|
if (this.isW3C) {
|
|
34
|
-
location = await utils_1.getElementRect(this);
|
|
34
|
+
location = await (0, utils_1.getElementRect)(this);
|
|
35
35
|
delete location.width;
|
|
36
36
|
delete location.height;
|
|
37
37
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @param {String} property name of the element property
|
|
15
15
|
* @return {Object|String|Boolean|Number|null} the value of the property of the selected element
|
|
16
16
|
*/
|
|
17
|
-
export default function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | (() => DOMRect) | Document | ((event: Event) => boolean) | ((this: GlobalEventHandlers, ev: UIEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: FocusEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev:
|
|
17
|
+
export default function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | (() => DOMRect) | Document | ((event: Event) => boolean) | ((this: GlobalEventHandlers, ev: UIEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: FocusEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: DragEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | OnErrorEventHandler | ((this: GlobalEventHandlers, ev: FocusEvent) => any) | ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: MouseEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: PointerEvent) => any) | ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: UIEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | ((this: GlobalEventHandlers, ev: TouchEvent) => any) | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: Event) => any) | ((this: GlobalEventHandlers, ev: WheelEvent) => any) | (() => void) | {
|
|
18
18
|
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
19
19
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
20
20
|
} | {
|
|
@@ -23,25 +23,25 @@ export default function getProperty(this: WebdriverIO.Element, property: string)
|
|
|
23
23
|
} | NamedNodeMap | DOMTokenList | ((this: Element, ev: Event) => any) | ((this: Element, ev: Event) => any) | ShadowRoot | ((init: ShadowRootInit) => ShadowRoot) | {
|
|
24
24
|
<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
25
25
|
<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
26
|
-
<E extends Element = Element>(
|
|
27
|
-
} | ((namespace: string | null, localName: string) => string | null) | (() => string[]) | ((qualifiedName: string) => Attr | null) | ((namespace: string | null, localName: string) => Attr | null) | (() => DOMRectList) | ((classNames: string) => HTMLCollectionOf<Element>) | {
|
|
26
|
+
<E extends Element = Element>(selectors: string): E | null;
|
|
27
|
+
} | ((qualifiedName: string) => string | null) | ((namespace: string | null, localName: string) => string | null) | (() => string[]) | ((qualifiedName: string) => Attr | null) | ((namespace: string | null, localName: string) => Attr | null) | (() => DOMRectList) | ((classNames: string) => HTMLCollectionOf<Element>) | {
|
|
28
28
|
<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
|
29
29
|
<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
|
30
30
|
(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
31
31
|
} | {
|
|
32
32
|
(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
33
33
|
(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
34
|
-
(
|
|
35
|
-
} | ((qualifiedName: string) => boolean) | ((namespace: string | null, localName: string) => boolean) | (() => boolean) | ((pointerId: number) => boolean) | ((
|
|
34
|
+
(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
35
|
+
} | ((qualifiedName: string) => boolean) | ((namespace: string | null, localName: string) => boolean) | (() => boolean) | ((pointerId: number) => boolean) | ((where: InsertPosition, element: Element) => Element | null) | ((position: InsertPosition, text: string) => void) | ((where: InsertPosition, data: string) => void) | ((selectors: string) => boolean) | ((pointerId: number) => void) | ((qualifiedName: string) => void) | ((namespace: string | null, localName: string) => void) | ((attr: Attr) => Attr) | ((options?: FullscreenOptions | undefined) => Promise<void>) | (() => void) | {
|
|
36
36
|
(options?: ScrollToOptions | undefined): void;
|
|
37
37
|
(x: number, y: number): void;
|
|
38
38
|
} | {
|
|
39
39
|
(options?: ScrollToOptions | undefined): void;
|
|
40
40
|
(x: number, y: number): void;
|
|
41
|
-
} | {
|
|
41
|
+
} | ((arg?: boolean | ScrollIntoViewOptions | undefined) => void) | {
|
|
42
42
|
(options?: ScrollToOptions | undefined): void;
|
|
43
43
|
(x: number, y: number): void;
|
|
44
|
-
} | ((qualifiedName: string, value: string) => void) | ((namespace: string | null, qualifiedName: string, value: string) => void) | ((attr: Attr) => Attr | null) | ((attr: Attr) => Attr | null) | ((pointerId: number) => void) | ((qualifiedName: string, force?: boolean | undefined) => boolean) | ((selectors: string) => boolean) | NodeListOf<ChildNode> | (
|
|
44
|
+
} | ((qualifiedName: string, value: string) => void) | ((namespace: string | null, qualifiedName: string, value: string) => void) | ((attr: Attr) => Attr | null) | ((attr: Attr) => Attr | null) | ((pointerId: number) => void) | ((qualifiedName: string, force?: boolean | undefined) => boolean) | ((selectors: string) => boolean) | NodeListOf<ChildNode> | (<T extends Node>(node: T) => T) | ((deep?: boolean | undefined) => Node) | ((other: Node) => number) | ((other: Node | null) => boolean) | ((options?: GetRootNodeOptions | undefined) => Node) | (() => boolean) | (<T_1 extends Node>(node: T_1, child: Node | null) => T_1) | ((namespace: string | null) => boolean) | ((otherNode: Node | null) => boolean) | ((otherNode: Node | null) => boolean) | ((prefix: string | null) => string | null) | ((namespace: string | null) => string | null) | (() => void) | (<T_2 extends Node>(child: T_2) => T_2) | (<T_3 extends Node>(node: Node, child: T_3) => T_3) | ((keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation) | ((options?: GetAnimationsOptions | undefined) => Animation[]) | ((...nodes: (string | Node)[]) => void) | ((...nodes: (string | Node)[]) => void) | (() => void) | ((...nodes: (string | Node)[]) => void) | HTMLCollection | ((...nodes: (string | Node)[]) => void) | ((...nodes: (string | Node)[]) => void) | {
|
|
45
45
|
<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
|
|
46
46
|
<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
|
|
47
47
|
<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
@@ -49,5 +49,5 @@ export default function getProperty(this: WebdriverIO.Element, property: string)
|
|
|
49
49
|
<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
|
50
50
|
<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
|
51
51
|
<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
52
|
-
} | HTMLSlotElement | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | CSSStyleDeclaration | DOMStringMap | (() => void) | ((options?: FocusOptions | undefined) => void) | undefined>;
|
|
52
|
+
} | ((...nodes: (string | Node)[]) => void) | HTMLSlotElement | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | CSSStyleDeclaration | DOMStringMap | (() => void) | ((options?: FocusOptions | undefined) => void) | undefined>;
|
|
53
53
|
//# sourceMappingURL=getProperty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getProperty.d.ts","sourceRoot":"","sources":["../../../src/commands/element/getProperty.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qYAYnB"}
|
|
@@ -25,7 +25,7 @@ function getProperty(property) {
|
|
|
25
25
|
if (this.isW3C) {
|
|
26
26
|
return this.getElementProperty(this.elementId, property);
|
|
27
27
|
}
|
|
28
|
-
const browser = utils_1.getBrowserObject(this);
|
|
28
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
29
29
|
return browser.execute(getProperty_1.default, { ELEMENT: this.elementId }, property);
|
|
30
30
|
}
|
|
31
31
|
exports.default = getProperty;
|
|
@@ -31,7 +31,7 @@ const utils_1 = require("../../utils");
|
|
|
31
31
|
async function getSize(prop) {
|
|
32
32
|
let rect = {};
|
|
33
33
|
if (this.isW3C) {
|
|
34
|
-
rect = await utils_1.getElementRect(this);
|
|
34
|
+
rect = await (0, utils_1.getElementRect)(this);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
rect = await this.getElementSize(this.elementId);
|
|
@@ -46,7 +46,7 @@ async function isClickable() {
|
|
|
46
46
|
if (!await this.isDisplayed()) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
49
|
-
const browser = utils_1.getBrowserObject(this);
|
|
49
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
50
50
|
return browser.execute(isElementClickable_1.default, {
|
|
51
51
|
[constants_1.ELEMENT_KEY]: this.elementId,
|
|
52
52
|
ELEMENT: this.elementId // jsonwp compatible
|
|
@@ -50,8 +50,8 @@ const noW3CEndpoint = ['microsoftedge', 'msedge', 'safari', 'chrome', 'safari te
|
|
|
50
50
|
*/
|
|
51
51
|
async function isDisplayed() {
|
|
52
52
|
var _a;
|
|
53
|
-
const browser = utils_1.getBrowserObject(this);
|
|
54
|
-
if (!await utils_1.hasElementId(this)) {
|
|
53
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
54
|
+
if (!await (0, utils_1.hasElementId)(this)) {
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
/*
|
|
@@ -46,7 +46,7 @@ async function isDisplayedInViewport() {
|
|
|
46
46
|
if (!await this.isDisplayed()) {
|
|
47
47
|
return false;
|
|
48
48
|
}
|
|
49
|
-
const browser = utils_1.getBrowserObject(this);
|
|
49
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
50
50
|
return browser.execute(isElementInViewport_1.default, {
|
|
51
51
|
[constants_1.ELEMENT_KEY]: this.elementId,
|
|
52
52
|
ELEMENT: this.elementId // jsonwp compatible
|
|
@@ -29,7 +29,7 @@ const getWebElement = (el) => ({
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
async function isEqual(el) {
|
|
32
|
-
const browser = utils_1.getBrowserObject(this);
|
|
32
|
+
const browser = (0, utils_1.getBrowserObject)(this);
|
|
33
33
|
// mobile native
|
|
34
34
|
if (browser.isMobile) {
|
|
35
35
|
const context = await browser.getContext();
|
|
@@ -33,7 +33,7 @@ const isFocused_1 = __importDefault(require("../../scripts/isFocused"));
|
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
async function isFocused() {
|
|
36
|
-
const browser = await utils_1.getBrowserObject(this);
|
|
36
|
+
const browser = await (0, utils_1.getBrowserObject)(this);
|
|
37
37
|
return browser.execute(isFocused_1.default, {
|
|
38
38
|
[constants_1.ELEMENT_KEY]: this.elementId,
|
|
39
39
|
ELEMENT: this.elementId // jsonwp compatible
|
|
@@ -22,8 +22,8 @@ async function moveTo({ xOffset, yOffset } = {}) {
|
|
|
22
22
|
/**
|
|
23
23
|
* get rect of element
|
|
24
24
|
*/
|
|
25
|
-
const { x, y, width, height } = await utils_1.getElementRect(this);
|
|
26
|
-
const { scrollX, scrollY } = await utils_1.getScrollPosition(this);
|
|
25
|
+
const { x, y, width, height } = await (0, utils_1.getElementRect)(this);
|
|
26
|
+
const { scrollX, scrollY } = await (0, utils_1.getScrollPosition)(this);
|
|
27
27
|
const newXOffset = Math.floor(x - scrollX + (typeof xOffset === 'number' ? xOffset : (width / 2)));
|
|
28
28
|
const newYOffset = Math.floor(y - scrollY + (typeof yOffset === 'number' ? yOffset : (height / 2)));
|
|
29
29
|
/**
|
|
@@ -46,6 +46,6 @@ async function react$$(selector, { props = {}, state = {} } = {}) {
|
|
|
46
46
|
await this.execute(resq_1.waitToLoadReact);
|
|
47
47
|
const res = await this.execute(resq_1.react$$, selector, props, state, this);
|
|
48
48
|
const elements = await getElementObject_1.getElements.call(this, selector, res, true);
|
|
49
|
-
return utils_1.enhanceElementsArray(elements, this, selector, 'react$$', [props, state]);
|
|
49
|
+
return (0, utils_1.enhanceElementsArray)(elements, this, selector, 'react$$', [props, state]);
|
|
50
50
|
}
|
|
51
51
|
exports.default = react$$;
|
|
@@ -30,8 +30,8 @@ async function saveScreenshot(filepath) {
|
|
|
30
30
|
if (typeof filepath !== 'string' || !filepath.endsWith('.png')) {
|
|
31
31
|
throw new Error('saveScreenshot expects a filepath of type string and ".png" file ending');
|
|
32
32
|
}
|
|
33
|
-
const absoluteFilepath = utils_1.getAbsoluteFilepath(filepath);
|
|
34
|
-
utils_1.assertDirectoryExists(absoluteFilepath);
|
|
33
|
+
const absoluteFilepath = (0, utils_1.getAbsoluteFilepath)(filepath);
|
|
34
|
+
(0, utils_1.assertDirectoryExists)(absoluteFilepath);
|
|
35
35
|
const screenBuffer = await this.takeElementScreenshot(this.elementId);
|
|
36
36
|
const screenshot = Buffer.from(screenBuffer, 'base64');
|
|
37
37
|
fs_1.default.writeFileSync(absoluteFilepath, screenshot);
|
|
@@ -54,6 +54,6 @@ async function selectByAttribute(attribute, value) {
|
|
|
54
54
|
/**
|
|
55
55
|
* select option
|
|
56
56
|
*/
|
|
57
|
-
return this.elementClick(utils_1.getElementFromResponse(optionElement));
|
|
57
|
+
return this.elementClick((0, utils_1.getElementFromResponse)(optionElement));
|
|
58
58
|
}
|
|
59
59
|
exports.default = selectByAttribute;
|
|
@@ -50,6 +50,6 @@ async function selectByIndex(index) {
|
|
|
50
50
|
/**
|
|
51
51
|
* select option
|
|
52
52
|
*/
|
|
53
|
-
return this.elementClick(utils_1.getElementFromResponse(optionElements[index]));
|
|
53
|
+
return this.elementClick((0, utils_1.getElementFromResponse)(optionElements[index]));
|
|
54
54
|
}
|
|
55
55
|
exports.default = selectByIndex;
|
|
@@ -61,6 +61,6 @@ async function selectByVisibleText(text) {
|
|
|
61
61
|
/**
|
|
62
62
|
* select option
|
|
63
63
|
*/
|
|
64
|
-
return this.elementClick(utils_1.getElementFromResponse(optionElement));
|
|
64
|
+
return this.elementClick((0, utils_1.getElementFromResponse)(optionElement));
|
|
65
65
|
}
|
|
66
66
|
exports.default = selectByVisibleText;
|
|
@@ -22,6 +22,6 @@ const shadowFnFactory_1 = require("../../scripts/shadowFnFactory");
|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
async function shadowRoot(selector) {
|
|
25
|
-
return await this.$$(shadowFnFactory_1.shadowFnFactory(selector, true));
|
|
25
|
+
return await this.$$((0, shadowFnFactory_1.shadowFnFactory)(selector, true));
|
|
26
26
|
}
|
|
27
27
|
exports.default = shadowRoot;
|
|
@@ -22,6 +22,6 @@ const shadowFnFactory_1 = require("../../scripts/shadowFnFactory");
|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
async function shadowRoot(selector) {
|
|
25
|
-
return await this.$(shadowFnFactory_1.shadowFnFactory(selector));
|
|
25
|
+
return await this.$((0, shadowFnFactory_1.shadowFnFactory)(selector));
|
|
26
26
|
}
|
|
27
27
|
exports.default = shadowRoot;
|
package/build/constants.js
CHANGED