webdriverio 9.12.7 → 9.13.0
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/mobile/dragAndDrop.d.ts +7 -0
- package/build/commands/mobile/dragAndDrop.d.ts.map +1 -1
- package/build/commands/mobile/longPress.d.ts +11 -0
- package/build/commands/mobile/longPress.d.ts.map +1 -1
- package/build/commands/mobile/pinch.d.ts +7 -0
- package/build/commands/mobile/pinch.d.ts.map +1 -1
- package/build/commands/mobile/scrollIntoView.d.ts +7 -0
- package/build/commands/mobile/scrollIntoView.d.ts.map +1 -1
- package/build/commands/mobile/swipe.d.ts +7 -0
- package/build/commands/mobile/swipe.d.ts.map +1 -1
- package/build/commands/mobile/tap.d.ts +12 -0
- package/build/commands/mobile/tap.d.ts.map +1 -1
- package/build/commands/mobile/zoom.d.ts +7 -0
- package/build/commands/mobile/zoom.d.ts.map +1 -1
- package/build/index.js +10 -0
- package/build/node.js +10 -0
- package/build/session/dialog.d.ts.map +1 -1
- package/build/utils/index.d.ts +1 -1
- package/package.json +7 -7
|
@@ -11,6 +11,13 @@ export {};
|
|
|
11
11
|
*
|
|
12
12
|
* Also make sure that the element you are dragging and the target where you are dropping are both visible on the screen.
|
|
13
13
|
*
|
|
14
|
+
* This command only works with the following up-to-date components:
|
|
15
|
+
* - Appium server (version 2.0.0 or higher)
|
|
16
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
17
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
18
|
+
*
|
|
19
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
20
|
+
*
|
|
14
21
|
* :::
|
|
15
22
|
*
|
|
16
23
|
* <example>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/dragAndDrop.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"dragAndDrop.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/dragAndDrop.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG"}
|
|
@@ -5,6 +5,17 @@ import type { LongPressOptions } from '../../types.js';
|
|
|
5
5
|
*
|
|
6
6
|
* This issues a WebDriver `action` command for the selected element. It is based on the `click` command.
|
|
7
7
|
*
|
|
8
|
+
* :::info
|
|
9
|
+
*
|
|
10
|
+
* This command only works with the following up-to-date components:
|
|
11
|
+
* - Appium server (version 2.0.0 or higher)
|
|
12
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
13
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
14
|
+
*
|
|
15
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
16
|
+
*
|
|
17
|
+
* :::
|
|
18
|
+
*
|
|
8
19
|
* <example>
|
|
9
20
|
:longpress.offset.js
|
|
10
21
|
it('should demonstrate a longPress using an offset on the iOS Contacts icon', async () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"longPress.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/longPress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD
|
|
1
|
+
{"version":3,"file":"longPress.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/longPress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,SAAS,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,iBAwBtC"}
|
|
@@ -9,6 +9,13 @@ import type { PinchAndZoomOptions } from '../../types.js';
|
|
|
9
9
|
* - [appium-uiautomator2-driver](https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/android-mobile-gestures.md#mobile-pinchclosegesture) for Android
|
|
10
10
|
* - [appium-xcuitest-driver](https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-pinch) for iOS
|
|
11
11
|
*
|
|
12
|
+
* This command only works with the following up-to-date components:
|
|
13
|
+
* - Appium server (version 2.0.0 or higher)
|
|
14
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
15
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
16
|
+
*
|
|
17
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
18
|
+
*
|
|
12
19
|
* :::
|
|
13
20
|
*
|
|
14
21
|
* <example>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinch.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/pinch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD
|
|
1
|
+
{"version":3,"file":"pinch.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/pinch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}
|
|
@@ -7,6 +7,13 @@ export {};
|
|
|
7
7
|
*
|
|
8
8
|
* Scrolling for Mobile Native Apps is done based on the mobile `swipe` command.
|
|
9
9
|
*
|
|
10
|
+
* This command only works with the following up-to-date components:
|
|
11
|
+
* - Appium server (version 2.0.0 or higher)
|
|
12
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
13
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
14
|
+
*
|
|
15
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
16
|
+
*
|
|
10
17
|
* :::
|
|
11
18
|
*
|
|
12
19
|
* <example>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/scrollIntoView.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"scrollIntoView.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/scrollIntoView.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG"}
|
|
@@ -10,6 +10,13 @@ import type { SwipeOptions } from '../../types.js';
|
|
|
10
10
|
* or [`mobile: scroll`](https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-scroll) for iOS command which is based on the Appium Driver protocol and is
|
|
11
11
|
* only available for mobile platforms in the NATIVE context.
|
|
12
12
|
*
|
|
13
|
+
* This command only works with the following up-to-date components:
|
|
14
|
+
* - Appium server (version 2.0.0 or higher)
|
|
15
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
16
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
17
|
+
*
|
|
18
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
19
|
+
*
|
|
13
20
|
* :::
|
|
14
21
|
*
|
|
15
22
|
* :::caution Swiping based on coordinates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swipe.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/swipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,YAAY,EAAM,MAAM,gBAAgB,CAAA;AAU/E
|
|
1
|
+
{"version":3,"file":"swipe.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/swipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2B,YAAY,EAAM,MAAM,gBAAgB,CAAA;AAU/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAsB,KAAK,CACvB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,CAAC,EAAE,YAAY,GACvB,OAAO,CAAC,IAAI,GAAC,OAAO,CAAC,CAuBvB"}
|
|
@@ -21,6 +21,18 @@ import type { TapOptions } from '../../types.js';
|
|
|
21
21
|
* For Native Apps, this command differs from the `click` command as it will <strong>automatically swipe</strong> to the element using the `scrollIntoView command`,
|
|
22
22
|
* which is not supported for native apps with the `click` command. In hybrid apps or web environments, automatic scrolling is supported for both `click` and `tap` commands.
|
|
23
23
|
*
|
|
24
|
+
* :::info
|
|
25
|
+
*
|
|
26
|
+
* This command only works with the following up-to-date components:
|
|
27
|
+
* - Appium server (version 2.0.0 or higher)
|
|
28
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
29
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
30
|
+
*
|
|
31
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
32
|
+
*
|
|
33
|
+
* :::
|
|
34
|
+
*
|
|
35
|
+
*
|
|
24
36
|
* :::caution For Screen taps
|
|
25
37
|
*
|
|
26
38
|
* If you want to tap on a specific coordinate on the screen and you use a screenshot to determine the coordinates, remember that the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/tap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E
|
|
1
|
+
{"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/tap.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AACH,wBAAsB,GAAG,CACrB,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,OAAO,CAAC,EAAE,UAAU,oBAqBvB"}
|
|
@@ -9,6 +9,13 @@ import type { PinchAndZoomOptions } from '../../types.js';
|
|
|
9
9
|
* - [appium-uiautomator2-driver](https://github.com/appium/appium-uiautomator2-driver/blob/master/docs/android-mobile-gestures.md#mobile-pinchopengesture) for Android
|
|
10
10
|
* - [appium-xcuitest-driver](https://appium.github.io/appium-xcuitest-driver/latest/reference/execute-methods/#mobile-pinch) for iOS
|
|
11
11
|
*
|
|
12
|
+
* This command only works with the following up-to-date components:
|
|
13
|
+
* - Appium server (version 2.0.0 or higher)
|
|
14
|
+
* - `appium-uiautomator2-driver` (for Android)
|
|
15
|
+
* - `appium-xcuitest-driver` (for iOS)
|
|
16
|
+
*
|
|
17
|
+
* Make sure your local or cloud-based Appium environment is regularly updated to avoid compatibility issues.
|
|
18
|
+
*
|
|
12
19
|
* :::
|
|
13
20
|
*
|
|
14
21
|
* <example>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoom.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/zoom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD
|
|
1
|
+
{"version":3,"file":"zoom.d.ts","sourceRoot":"","sources":["../../../src/commands/mobile/zoom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,GAAE,OAAO,CAAC,mBAAmB,CAAM,oBAuB7C"}
|
package/build/index.js
CHANGED
|
@@ -4977,6 +4977,11 @@ var Dialog = class {
|
|
|
4977
4977
|
* @returns {Promise<void>}
|
|
4978
4978
|
*/
|
|
4979
4979
|
async accept(userText) {
|
|
4980
|
+
const contextManager = getContextManager(__privateGet(this, _browser9));
|
|
4981
|
+
const context = await contextManager.getCurrentContext();
|
|
4982
|
+
if (__privateGet(this, _context) !== context) {
|
|
4983
|
+
return;
|
|
4984
|
+
}
|
|
4980
4985
|
await __privateGet(this, _browser9).browsingContextHandleUserPrompt({
|
|
4981
4986
|
accept: true,
|
|
4982
4987
|
context: __privateGet(this, _context),
|
|
@@ -4984,6 +4989,11 @@ var Dialog = class {
|
|
|
4984
4989
|
});
|
|
4985
4990
|
}
|
|
4986
4991
|
async dismiss() {
|
|
4992
|
+
const contextManager = getContextManager(__privateGet(this, _browser9));
|
|
4993
|
+
const context = await contextManager.getCurrentContext();
|
|
4994
|
+
if (__privateGet(this, _context) !== context) {
|
|
4995
|
+
return;
|
|
4996
|
+
}
|
|
4987
4997
|
await __privateGet(this, _browser9).browsingContextHandleUserPrompt({
|
|
4988
4998
|
accept: false,
|
|
4989
4999
|
context: __privateGet(this, _context)
|
package/build/node.js
CHANGED
|
@@ -5040,6 +5040,11 @@ var Dialog = class {
|
|
|
5040
5040
|
* @returns {Promise<void>}
|
|
5041
5041
|
*/
|
|
5042
5042
|
async accept(userText) {
|
|
5043
|
+
const contextManager = getContextManager(this.#browser);
|
|
5044
|
+
const context = await contextManager.getCurrentContext();
|
|
5045
|
+
if (this.#context !== context) {
|
|
5046
|
+
return;
|
|
5047
|
+
}
|
|
5043
5048
|
await this.#browser.browsingContextHandleUserPrompt({
|
|
5044
5049
|
accept: true,
|
|
5045
5050
|
context: this.#context,
|
|
@@ -5047,6 +5052,11 @@ var Dialog = class {
|
|
|
5047
5052
|
});
|
|
5048
5053
|
}
|
|
5049
5054
|
async dismiss() {
|
|
5055
|
+
const contextManager = getContextManager(this.#browser);
|
|
5056
|
+
const context = await contextManager.getCurrentContext();
|
|
5057
|
+
if (this.#context !== context) {
|
|
5058
|
+
return;
|
|
5059
|
+
}
|
|
5050
5060
|
await this.#browser.browsingContextHandleUserPrompt({
|
|
5051
5061
|
accept: false,
|
|
5052
5062
|
context: this.#context
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/session/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/session/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,iBAE5D;AAED;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,cAAc;;gBAKjC,OAAO,EAAE,WAAW,CAAC,OAAO;IAyBxC,eAAe,IAAI,IAAI;IAOjB,UAAU;CA2BnB;AAED,qBAAa,MAAM;;gBAOF,KAAK,EAAE,KAAK,CAAC,yCAAyC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO;IAQjG,OAAO;IAIP,YAAY;IAIZ,IAAI;IAIJ;;;;;;OAMG;IACG,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM;IAexB,OAAO;CAahB"}
|
package/build/utils/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare function findDeepElements(this: WebdriverIO.Browser | WebdriverIO
|
|
|
61
61
|
* logic to find an element
|
|
62
62
|
* Note: the order of if statements matters
|
|
63
63
|
*/
|
|
64
|
-
export declare function findElement(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<
|
|
64
|
+
export declare function findElement(this: WebdriverIO.Browser | WebdriverIO.Element, selector: Selector): Promise<Error | ElementReference | undefined>;
|
|
65
65
|
/**
|
|
66
66
|
* logic to find a elements
|
|
67
67
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.13.0",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@types/node": "^20.11.30",
|
|
79
79
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
80
|
-
"@wdio/config": "9.
|
|
80
|
+
"@wdio/config": "9.13.0",
|
|
81
81
|
"@wdio/logger": "9.4.4",
|
|
82
|
-
"@wdio/protocols": "9.
|
|
82
|
+
"@wdio/protocols": "9.13.0",
|
|
83
83
|
"@wdio/repl": "9.4.4",
|
|
84
|
-
"@wdio/types": "9.
|
|
85
|
-
"@wdio/utils": "9.
|
|
84
|
+
"@wdio/types": "9.13.0",
|
|
85
|
+
"@wdio/utils": "9.13.0",
|
|
86
86
|
"archiver": "^7.0.1",
|
|
87
87
|
"aria-query": "^5.3.0",
|
|
88
88
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"rgb2hex": "0.2.5",
|
|
100
100
|
"serialize-error": "^11.0.3",
|
|
101
101
|
"urlpattern-polyfill": "^10.0.0",
|
|
102
|
-
"webdriver": "9.
|
|
102
|
+
"webdriver": "9.13.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"puppeteer-core": ">=22.x || <=24.x"
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"optional": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "8eb40a63ea043e3d6c292087b28a8ad4949484b0"
|
|
113
113
|
}
|