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,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../../utils");
|
|
1
|
+
import { validateUrl } from '../../utils/index.js';
|
|
4
2
|
/**
|
|
5
3
|
*
|
|
6
4
|
* Protocol binding to load the URL of the browser. If a baseUrl is
|
|
@@ -37,13 +35,12 @@ const utils_1 = require("../../utils");
|
|
|
37
35
|
* @type protocol
|
|
38
36
|
*
|
|
39
37
|
*/
|
|
40
|
-
function url(path) {
|
|
38
|
+
export default function url(path) {
|
|
41
39
|
if (typeof path !== 'string') {
|
|
42
40
|
throw new Error('Parameter for "url" command needs to be type of string');
|
|
43
41
|
}
|
|
44
42
|
if (typeof this.options.baseUrl === 'string' && this.options.baseUrl) {
|
|
45
43
|
path = (new URL(path, this.options.baseUrl)).href;
|
|
46
44
|
}
|
|
47
|
-
return this.navigateTo(
|
|
45
|
+
return this.navigateTo(validateUrl(path));
|
|
48
46
|
}
|
|
49
|
-
exports.default = url;
|
|
@@ -2,8 +2,7 @@ import type { WaitUntilOptions } from '../../types';
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* This wait command is your universal weapon if you want to wait on something. It expects a condition
|
|
5
|
-
* and waits until that condition is fulfilled with a truthy value.
|
|
6
|
-
* commands within the condition are getting executed synchronously like in your test.
|
|
5
|
+
* and waits until that condition is fulfilled with a truthy value.
|
|
7
6
|
*
|
|
8
7
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
9
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD
|
|
1
|
+
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,SAAS,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC3C,EACI,OAAqC,EACrC,QAAuC,EACvC,UAAU,EACb,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CA4BtB"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const Timer_1 = __importDefault(require("../../utils/Timer"));
|
|
1
|
+
import Timer from '../../utils/Timer.js';
|
|
7
2
|
/**
|
|
8
3
|
*
|
|
9
4
|
* This wait command is your universal weapon if you want to wait on something. It expects a condition
|
|
10
|
-
* and waits until that condition is fulfilled with a truthy value.
|
|
11
|
-
* commands within the condition are getting executed synchronously like in your test.
|
|
5
|
+
* and waits until that condition is fulfilled with a truthy value.
|
|
12
6
|
*
|
|
13
7
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
14
8
|
*
|
|
@@ -45,7 +39,7 @@ const Timer_1 = __importDefault(require("../../utils/Timer"));
|
|
|
45
39
|
* @type utility
|
|
46
40
|
*
|
|
47
41
|
*/
|
|
48
|
-
function waitUntil(condition, { timeout = this.options.waitforTimeout, interval = this.options.waitforInterval, timeoutMsg } = {}) {
|
|
42
|
+
export default function waitUntil(condition, { timeout = this.options.waitforTimeout, interval = this.options.waitforInterval, timeoutMsg } = {}) {
|
|
49
43
|
if (typeof condition !== 'function') {
|
|
50
44
|
throw new Error('Condition is not a function');
|
|
51
45
|
}
|
|
@@ -59,7 +53,7 @@ function waitUntil(condition, { timeout = this.options.waitforTimeout, interval
|
|
|
59
53
|
interval = this.options.waitforInterval;
|
|
60
54
|
}
|
|
61
55
|
const fn = condition.bind(this);
|
|
62
|
-
let timer = new
|
|
56
|
+
let timer = new Timer(interval, timeout, fn, true);
|
|
63
57
|
return timer.catch((e) => {
|
|
64
58
|
if (e.message === 'timeout') {
|
|
65
59
|
if (typeof timeoutMsg === 'string') {
|
|
@@ -70,4 +64,3 @@ function waitUntil(condition, { timeout = this.options.waitforTimeout, interval
|
|
|
70
64
|
throw new Error(`waitUntil condition failed with the following reason: ${(e && e.message) || e}`);
|
|
71
65
|
});
|
|
72
66
|
}
|
|
73
|
-
exports.default = waitUntil;
|
|
@@ -1,70 +1,38 @@
|
|
|
1
|
-
import $$ from './browser
|
|
2
|
-
import $ from './browser
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
custom$$: typeof custom$$;
|
|
39
|
-
custom$: typeof custom$;
|
|
40
|
-
debug: typeof debug;
|
|
41
|
-
deleteCookies: typeof deleteCookies;
|
|
42
|
-
execute: typeof execute;
|
|
43
|
-
executeAsync: typeof executeAsync;
|
|
44
|
-
getCookies: typeof getCookies;
|
|
45
|
-
getPuppeteer: typeof getPuppeteer;
|
|
46
|
-
getWindowSize: typeof getWindowSize;
|
|
47
|
-
keys: typeof keys;
|
|
48
|
-
mock: typeof mock;
|
|
49
|
-
mockClearAll: typeof mockClearAll;
|
|
50
|
-
mockRestoreAll: typeof mockRestoreAll;
|
|
51
|
-
newWindow: typeof newWindow;
|
|
52
|
-
pause: typeof pause;
|
|
53
|
-
react$$: typeof react$$;
|
|
54
|
-
react$: typeof react$;
|
|
55
|
-
reloadSession: typeof reloadSession;
|
|
56
|
-
savePDF: typeof savePDF;
|
|
57
|
-
saveRecordingScreen: typeof saveRecordingScreen;
|
|
58
|
-
saveScreenshot: typeof saveScreenshot;
|
|
59
|
-
setCookies: typeof setCookies;
|
|
60
|
-
setTimeout: typeof setTimeout;
|
|
61
|
-
setWindowSize: typeof setWindowSize;
|
|
62
|
-
switchWindow: typeof switchWindow;
|
|
63
|
-
throttle: typeof throttle;
|
|
64
|
-
touchAction: typeof touchAction;
|
|
65
|
-
uploadFile: typeof uploadFile;
|
|
66
|
-
url: typeof url;
|
|
67
|
-
waitUntil: typeof waitUntil;
|
|
68
|
-
};
|
|
69
|
-
export default _default;
|
|
1
|
+
import $$ from './browser/$$.js';
|
|
2
|
+
import $ from './browser/$.js';
|
|
3
|
+
import action from './browser/action.js';
|
|
4
|
+
import actions from './browser/actions.js';
|
|
5
|
+
import call from './browser/call.js';
|
|
6
|
+
import custom$$ from './browser/custom$$.js';
|
|
7
|
+
import custom$ from './browser/custom$.js';
|
|
8
|
+
import debug from './browser/debug.js';
|
|
9
|
+
import deleteCookies from './browser/deleteCookies.js';
|
|
10
|
+
import execute from './browser/execute.js';
|
|
11
|
+
import executeAsync from './browser/executeAsync.js';
|
|
12
|
+
import getCookies from './browser/getCookies.js';
|
|
13
|
+
import getPuppeteer from './browser/getPuppeteer.js';
|
|
14
|
+
import getWindowSize from './browser/getWindowSize.js';
|
|
15
|
+
import keys from './browser/keys.js';
|
|
16
|
+
import mock from './browser/mock.js';
|
|
17
|
+
import mockClearAll from './browser/mockClearAll.js';
|
|
18
|
+
import mockRestoreAll from './browser/mockRestoreAll.js';
|
|
19
|
+
import newWindow from './browser/newWindow.js';
|
|
20
|
+
import pause from './browser/pause.js';
|
|
21
|
+
import react$$ from './browser/react$$.js';
|
|
22
|
+
import react$ from './browser/react$.js';
|
|
23
|
+
import reloadSession from './browser/reloadSession.js';
|
|
24
|
+
import savePDF from './browser/savePDF.js';
|
|
25
|
+
import saveRecordingScreen from './browser/saveRecordingScreen.js';
|
|
26
|
+
import saveScreenshot from './browser/saveScreenshot.js';
|
|
27
|
+
import scroll from './browser/scroll.js';
|
|
28
|
+
import setCookies from './browser/setCookies.js';
|
|
29
|
+
import setTimeout from './browser/setTimeout.js';
|
|
30
|
+
import setWindowSize from './browser/setWindowSize.js';
|
|
31
|
+
import switchWindow from './browser/switchWindow.js';
|
|
32
|
+
import throttle from './browser/throttle.js';
|
|
33
|
+
import touchAction from './browser/touchAction.js';
|
|
34
|
+
import uploadFile from './browser/uploadFile.js';
|
|
35
|
+
import url from './browser/url.js';
|
|
36
|
+
import waitUntil from './browser/waitUntil.js';
|
|
37
|
+
export { $$, $, action, actions, call, custom$$, custom$, debug, deleteCookies, execute, executeAsync, getCookies, getPuppeteer, getWindowSize, keys, mock, mockClearAll, mockRestoreAll, newWindow, pause, react$$, react$, reloadSession, savePDF, saveRecordingScreen, saveScreenshot, scroll, setCookies, setTimeout, setWindowSize, switchWindow, throttle, touchAction, uploadFile, url, waitUntil };
|
|
70
38
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/commands/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/commands/browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAChC,OAAO,CAAC,MAAM,gBAAgB,CAAA;AAC9B,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,QAAQ,MAAM,uBAAuB,CAAA;AAC5C,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,aAAa,MAAM,4BAA4B,CAAA;AACtD,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,YAAY,MAAM,2BAA2B,CAAA;AACpD,OAAO,UAAU,MAAM,yBAAyB,CAAA;AAChD,OAAO,YAAY,MAAM,2BAA2B,CAAA;AACpD,OAAO,aAAa,MAAM,4BAA4B,CAAA;AACtD,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,IAAI,MAAM,mBAAmB,CAAA;AACpC,OAAO,YAAY,MAAM,2BAA2B,CAAA;AACpD,OAAO,cAAc,MAAM,6BAA6B,CAAA;AACxD,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAC9C,OAAO,KAAK,MAAM,oBAAoB,CAAA;AACtC,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,aAAa,MAAM,4BAA4B,CAAA;AACtD,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,mBAAmB,MAAM,kCAAkC,CAAA;AAClE,OAAO,cAAc,MAAM,6BAA6B,CAAA;AACxD,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,UAAU,MAAM,yBAAyB,CAAA;AAChD,OAAO,UAAU,MAAM,yBAAyB,CAAA;AAChD,OAAO,aAAa,MAAM,4BAA4B,CAAA;AACtD,OAAO,YAAY,MAAM,2BAA2B,CAAA;AACpD,OAAO,QAAQ,MAAM,uBAAuB,CAAA;AAC5C,OAAO,WAAW,MAAM,0BAA0B,CAAA;AAClD,OAAO,UAAU,MAAM,yBAAyB,CAAA;AAChD,OAAO,GAAG,MAAM,kBAAkB,CAAA;AAClC,OAAO,SAAS,MAAM,wBAAwB,CAAA;AAE9C,OAAO,EACH,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAC5F,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAC5F,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,EAC3F,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,EAC3F,SAAS,EACZ,CAAA"}
|
|
@@ -1,44 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const waitUntil_1 = __importDefault(require("./browser/waitUntil"));
|
|
39
|
-
exports.default = {
|
|
40
|
-
$$: __1.default, $: _1.default, call: call_1.default, custom$$: custom__1.default, custom$: custom_1.default, debug: debug_1.default, deleteCookies: deleteCookies_1.default, execute: execute_1.default, executeAsync: executeAsync_1.default, getCookies: getCookies_1.default,
|
|
41
|
-
getPuppeteer: getPuppeteer_1.default, getWindowSize: getWindowSize_1.default, keys: keys_1.default, mock: mock_1.default, mockClearAll: mockClearAll_1.default, mockRestoreAll: mockRestoreAll_1.default, newWindow: newWindow_1.default, pause: pause_1.default,
|
|
42
|
-
react$$: react__1.default, react$: react_1.default, reloadSession: reloadSession_1.default, savePDF: savePDF_1.default, saveRecordingScreen: saveRecordingScreen_1.default, saveScreenshot: saveScreenshot_1.default, setCookies: setCookies_1.default,
|
|
43
|
-
setTimeout: setTimeout_1.default, setWindowSize: setWindowSize_1.default, switchWindow: switchWindow_1.default, throttle: throttle_1.default, touchAction: touchAction_1.default, uploadFile: uploadFile_1.default, url: url_1.default, waitUntil: waitUntil_1.default
|
|
44
|
-
};
|
|
1
|
+
import $$ from './browser/$$.js';
|
|
2
|
+
import $ from './browser/$.js';
|
|
3
|
+
import action from './browser/action.js';
|
|
4
|
+
import actions from './browser/actions.js';
|
|
5
|
+
import call from './browser/call.js';
|
|
6
|
+
import custom$$ from './browser/custom$$.js';
|
|
7
|
+
import custom$ from './browser/custom$.js';
|
|
8
|
+
import debug from './browser/debug.js';
|
|
9
|
+
import deleteCookies from './browser/deleteCookies.js';
|
|
10
|
+
import execute from './browser/execute.js';
|
|
11
|
+
import executeAsync from './browser/executeAsync.js';
|
|
12
|
+
import getCookies from './browser/getCookies.js';
|
|
13
|
+
import getPuppeteer from './browser/getPuppeteer.js';
|
|
14
|
+
import getWindowSize from './browser/getWindowSize.js';
|
|
15
|
+
import keys from './browser/keys.js';
|
|
16
|
+
import mock from './browser/mock.js';
|
|
17
|
+
import mockClearAll from './browser/mockClearAll.js';
|
|
18
|
+
import mockRestoreAll from './browser/mockRestoreAll.js';
|
|
19
|
+
import newWindow from './browser/newWindow.js';
|
|
20
|
+
import pause from './browser/pause.js';
|
|
21
|
+
import react$$ from './browser/react$$.js';
|
|
22
|
+
import react$ from './browser/react$.js';
|
|
23
|
+
import reloadSession from './browser/reloadSession.js';
|
|
24
|
+
import savePDF from './browser/savePDF.js';
|
|
25
|
+
import saveRecordingScreen from './browser/saveRecordingScreen.js';
|
|
26
|
+
import saveScreenshot from './browser/saveScreenshot.js';
|
|
27
|
+
import scroll from './browser/scroll.js';
|
|
28
|
+
import setCookies from './browser/setCookies.js';
|
|
29
|
+
import setTimeout from './browser/setTimeout.js';
|
|
30
|
+
import setWindowSize from './browser/setWindowSize.js';
|
|
31
|
+
import switchWindow from './browser/switchWindow.js';
|
|
32
|
+
import throttle from './browser/throttle.js';
|
|
33
|
+
import touchAction from './browser/touchAction.js';
|
|
34
|
+
import uploadFile from './browser/uploadFile.js';
|
|
35
|
+
import url from './browser/url.js';
|
|
36
|
+
import waitUntil from './browser/waitUntil.js';
|
|
37
|
+
export { $$, $, action, actions, call, custom$$, custom$, debug, deleteCookies, execute, executeAsync, getCookies, getPuppeteer, getWindowSize, keys, mock, mockClearAll, mockRestoreAll, newWindow, pause, react$$, react$, reloadSession, savePDF, saveRecordingScreen, saveScreenshot, scroll, setCookies, setTimeout, setWindowSize, switchWindow, throttle, touchAction, uploadFile, url, waitUntil };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AASzD,UAAU,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,oBAAoB,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,UACZ,YAAY,OAAO,GAAG,mBAAmB,WACvC,YAAY,EAAE,KACxB,gBAAgB,EAsClB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,gBAAgB,SA8B1D,CAAA;AAED,eAAO,MAAM,WAAW,SACd,YAAY,OAAO,GAAG,mBAAmB,WACtC,YAAY,kBAgBxB,CAAA"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.touchAction = exports.validateParameters = exports.formatArgs = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Constants around commands
|
|
6
3
|
*/
|
|
7
4
|
const TOUCH_ACTIONS = ['press', 'longPress', 'tap', 'moveTo', 'wait', 'release'];
|
|
8
5
|
const POS_ACTIONS = TOUCH_ACTIONS.slice(0, 4);
|
|
9
6
|
const ACCEPTED_OPTIONS = ['x', 'y', 'element'];
|
|
10
|
-
const formatArgs = function (scope, actions) {
|
|
7
|
+
export const formatArgs = function (scope, actions) {
|
|
11
8
|
return actions.map((action) => {
|
|
12
9
|
if (Array.isArray(action)) {
|
|
13
|
-
return
|
|
10
|
+
return formatArgs(scope, action);
|
|
14
11
|
}
|
|
15
12
|
if (typeof action === 'string') {
|
|
16
13
|
action = { action };
|
|
@@ -43,14 +40,13 @@ const formatArgs = function (scope, actions) {
|
|
|
43
40
|
return formattedAction;
|
|
44
41
|
});
|
|
45
42
|
};
|
|
46
|
-
exports.formatArgs = formatArgs;
|
|
47
43
|
/**
|
|
48
44
|
* Make sure action has proper options before sending command to Appium.
|
|
49
45
|
*
|
|
50
46
|
* @param {Object} params touchAction parameters
|
|
51
47
|
* @return null
|
|
52
48
|
*/
|
|
53
|
-
const validateParameters = (params) => {
|
|
49
|
+
export const validateParameters = (params) => {
|
|
54
50
|
const options = Object.keys(params.options || {});
|
|
55
51
|
if (params.action === 'release' && options.length !== 0) {
|
|
56
52
|
throw new Error('action "release" doesn\'t accept any options ' +
|
|
@@ -72,20 +68,18 @@ const validateParameters = (params) => {
|
|
|
72
68
|
}
|
|
73
69
|
}
|
|
74
70
|
};
|
|
75
|
-
|
|
76
|
-
const touchAction = function (actions) {
|
|
71
|
+
export const touchAction = function (actions) {
|
|
77
72
|
if (!this.multiTouchPerform || !this.touchPerform) {
|
|
78
73
|
throw new Error('touchAction can be used with Appium only.');
|
|
79
74
|
}
|
|
80
75
|
if (!Array.isArray(actions)) {
|
|
81
76
|
actions = [actions];
|
|
82
77
|
}
|
|
83
|
-
const formattedAction =
|
|
78
|
+
const formattedAction = formatArgs(this, actions);
|
|
84
79
|
const protocolCommand = Array.isArray(actions[0])
|
|
85
80
|
// cast old JSONWP
|
|
86
81
|
? this.multiTouchPerform.bind(this)
|
|
87
82
|
: this.touchPerform.bind(this);
|
|
88
|
-
formattedAction.forEach((params) =>
|
|
83
|
+
formattedAction.forEach((params) => validateParameters(params));
|
|
89
84
|
return protocolCommand(formattedAction);
|
|
90
85
|
};
|
|
91
|
-
exports.touchAction = touchAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/$$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/$$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjC,eAAe,EAAE,CAAA"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
1
|
/**
|
|
7
2
|
* The `$$` command is a short way to call the [`findElements`](/docs/api/webdriver#findelements) command in order
|
|
8
3
|
* to fetch multiple elements on the page similar to the `$$` command from the browser scope. The difference when calling
|
|
@@ -46,5 +41,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
46
41
|
* @type utility
|
|
47
42
|
*
|
|
48
43
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
import $$ from '../browser/$$.js';
|
|
45
|
+
export default $$;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/$.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,OAAO,CAAC,MAAM,iBAAiB,CAAA;AAC/B,eAAe,CAAC,CAAA"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
1
|
/**
|
|
7
2
|
* The `$` command is a short way to call the [`findElement`](/docs/api/webdriver#findelement) command in order
|
|
8
3
|
* to fetch a single element on the page similar to the `$` command from the browser scope. The difference when calling
|
|
@@ -72,5 +67,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
72
67
|
* @type utility
|
|
73
68
|
*
|
|
74
69
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
import $ from '../browser/$.js';
|
|
71
|
+
export default $;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
export declare type CommandOptions = {
|
|
2
|
-
translateToUnicode?: boolean;
|
|
3
|
-
};
|
|
4
|
-
export declare type Value = string | number;
|
|
5
1
|
/**
|
|
6
2
|
*
|
|
7
|
-
* Add a value to an
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
3
|
+
* Add a value to an input or textarea element found by given selector.
|
|
4
|
+
*
|
|
5
|
+
* :::info
|
|
6
|
+
*
|
|
7
|
+
* If you like to use special characters, e.g. to copy and paste a value from one input to another, use the
|
|
8
|
+
* [`keys`](/docs/api/browser/keys) command.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
13
11
|
*
|
|
14
12
|
* <example>
|
|
15
13
|
:addValue.js
|
|
@@ -24,10 +22,8 @@ export declare type Value = string | number;
|
|
|
24
22
|
* </example>
|
|
25
23
|
*
|
|
26
24
|
* @alias element.addValue
|
|
27
|
-
* @param {string | number
|
|
28
|
-
* @param {CommandOptions=} options command options (optional)
|
|
29
|
-
* @param {boolean} options.translateToUnicode enable translation string to unicode value automatically
|
|
25
|
+
* @param {string | number} value value to be added
|
|
30
26
|
*
|
|
31
27
|
*/
|
|
32
|
-
export default function addValue(this: WebdriverIO.Element, value:
|
|
28
|
+
export default function addValue(this: WebdriverIO.Element, value: string | number): Promise<void>;
|
|
33
29
|
//# sourceMappingURL=addValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/addValue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addValue.d.ts","sourceRoot":"","sources":["../../../src/commands/element/addValue.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,iBAoBzB"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const utils_1 = require("../../utils");
|
|
7
|
-
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
8
|
-
const log = (0, logger_1.default)('addValue');
|
|
9
|
-
const isNumberOrString = (input) => typeof input === 'string' || typeof input === 'number';
|
|
10
|
-
const isValidType = (value) => (isNumberOrString(value) ||
|
|
11
|
-
Array.isArray(value) && value.every((item) => isNumberOrString(item)));
|
|
1
|
+
const VALID_TYPES = ['string', 'number'];
|
|
12
2
|
/**
|
|
13
3
|
*
|
|
14
|
-
* Add a value to an
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
4
|
+
* Add a value to an input or textarea element found by given selector.
|
|
5
|
+
*
|
|
6
|
+
* :::info
|
|
7
|
+
*
|
|
8
|
+
* If you like to use special characters, e.g. to copy and paste a value from one input to another, use the
|
|
9
|
+
* [`keys`](/docs/api/browser/keys) command.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
20
12
|
*
|
|
21
13
|
* <example>
|
|
22
14
|
:addValue.js
|
|
@@ -31,18 +23,22 @@ const isValidType = (value) => (isNumberOrString(value) ||
|
|
|
31
23
|
* </example>
|
|
32
24
|
*
|
|
33
25
|
* @alias element.addValue
|
|
34
|
-
* @param {string | number
|
|
35
|
-
* @param {CommandOptions=} options command options (optional)
|
|
36
|
-
* @param {boolean} options.translateToUnicode enable translation string to unicode value automatically
|
|
26
|
+
* @param {string | number} value value to be added
|
|
37
27
|
*
|
|
38
28
|
*/
|
|
39
|
-
function addValue(value
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
export default function addValue(value) {
|
|
30
|
+
/**
|
|
31
|
+
* The JSONWireProtocol allowed array values and use of special characters when adding a value to an input.
|
|
32
|
+
* With the W3C protocol this was not possible anymore. This is a type check to ensure users are aware of
|
|
33
|
+
* this transition.
|
|
34
|
+
*/
|
|
35
|
+
if (!VALID_TYPES.includes(typeof value)) {
|
|
36
|
+
throw new Error('The setValue/addValue command only take string or number values. ' +
|
|
37
|
+
'If you like to use special characters, use the "keys" command.');
|
|
42
38
|
}
|
|
43
|
-
if (
|
|
44
|
-
return this.elementSendKeys(this.elementId,
|
|
39
|
+
if (this.isW3C) {
|
|
40
|
+
return this.elementSendKeys(this.elementId, value.toString());
|
|
45
41
|
}
|
|
46
|
-
|
|
42
|
+
// @ts-expect-error command is not typed as JWP command
|
|
43
|
+
return this.elementSendKeys(this.elementId, [value.toString()]);
|
|
47
44
|
}
|
|
48
|
-
exports.default = addValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
|
-
* Clear
|
|
3
|
+
* Clear the value of an input or textarea element. Make sure you can interact with the
|
|
4
4
|
* element before using this command. You can't clear an input element that is disabled or in
|
|
5
5
|
* readonly mode.
|
|
6
6
|
*
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
|
-
* Clear
|
|
3
|
+
* Clear the value of an input or textarea element. Make sure you can interact with the
|
|
5
4
|
* element before using this command. You can't clear an input element that is disabled or in
|
|
6
5
|
* readonly mode.
|
|
7
6
|
*
|
|
@@ -25,8 +24,6 @@
|
|
|
25
24
|
* @type action
|
|
26
25
|
*
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
function clearValue() {
|
|
27
|
+
export default function clearValue() {
|
|
30
28
|
return this.elementClear(this.elementId);
|
|
31
29
|
}
|
|
32
|
-
exports.default = clearValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../src/commands/element/click.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../src/commands/element/click.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,wBAA8B,KAAK,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,YAAY,iBAyDzB"}
|