appium-mac2-driver 4.0.4 → 4.0.6
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/CHANGELOG.md +12 -0
- package/build/lib/commands/app-management.d.ts +1 -1
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/applescript.d.ts.map +1 -1
- package/build/lib/commands/applescript.js +1 -1
- package/build/lib/commands/applescript.js.map +1 -1
- package/build/lib/commands/bidi/models.d.ts.map +1 -1
- package/build/lib/commands/bidi/models.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/execute.d.ts +1 -1
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +5 -13
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/helpers.d.ts +1 -1
- package/build/lib/commands/helpers.d.ts.map +1 -1
- package/build/lib/commands/helpers.js.map +1 -1
- package/build/lib/commands/native-record-screen.d.ts +2 -2
- package/build/lib/commands/native-record-screen.d.ts.map +1 -1
- package/build/lib/commands/native-record-screen.js +4 -5
- package/build/lib/commands/native-record-screen.js.map +1 -1
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/record-screen.d.ts +1 -1
- package/build/lib/commands/record-screen.d.ts.map +1 -1
- package/build/lib/commands/record-screen.js +2 -2
- package/build/lib/commands/record-screen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js.map +1 -1
- package/build/lib/doctor/optional-checks.d.ts.map +1 -1
- package/build/lib/doctor/optional-checks.js +2 -2
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/doctor/required-checks.d.ts.map +1 -1
- package/build/lib/doctor/required-checks.js +1 -1
- package/build/lib/doctor/required-checks.js.map +1 -1
- package/build/lib/driver.d.ts +5 -5
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +9 -10
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +4 -37
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +2 -2
- package/build/lib/utils.js.map +1 -1
- package/build/lib/wda-mac.d.ts +1 -1
- package/build/lib/wda-mac.d.ts.map +1 -1
- package/build/lib/wda-mac.js +8 -12
- package/build/lib/wda-mac.js.map +1 -1
- package/lib/commands/app-management.ts +5 -16
- package/lib/commands/applescript.ts +3 -1
- package/lib/commands/bidi/models.ts +2 -5
- package/lib/commands/clipboard.ts +1 -4
- package/lib/commands/execute.ts +3 -6
- package/lib/commands/find.ts +1 -0
- package/lib/commands/gestures.ts +10 -44
- package/lib/commands/helpers.ts +3 -4
- package/lib/commands/native-record-screen.ts +15 -28
- package/lib/commands/navigation.ts +1 -5
- package/lib/commands/record-screen.ts +10 -30
- package/lib/commands/screenshots.ts +1 -4
- package/lib/commands/source.ts +1 -4
- package/lib/doctor/optional-checks.ts +10 -19
- package/lib/doctor/required-checks.ts +3 -5
- package/lib/driver.ts +12 -21
- package/lib/execute-method-map.ts +4 -37
- package/lib/utils.ts +3 -2
- package/lib/wda-mac.ts +19 -31
- package/npm-shrinkwrap.json +169 -198
- package/package.json +66 -77
- package/scripts/open-wda.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,47 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-mac2-driver",
|
|
3
|
+
"version": "4.0.6",
|
|
3
4
|
"description": "XCTest-based Appium driver for macOS apps automation",
|
|
4
5
|
"keywords": [
|
|
6
|
+
"XCTest",
|
|
5
7
|
"appium",
|
|
6
|
-
"mac"
|
|
7
|
-
"XCTest"
|
|
8
|
+
"mac"
|
|
8
9
|
],
|
|
9
|
-
"
|
|
10
|
-
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/appium/appium-mac2-driver/issues"
|
|
12
|
+
},
|
|
11
13
|
"license": "Apache-2.0",
|
|
14
|
+
"author": "Appium Contributors",
|
|
12
15
|
"repository": {
|
|
13
16
|
"type": "git",
|
|
14
17
|
"url": "https://github.com/appium/appium-mac2-driver.git"
|
|
15
18
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"mainClass": "Mac2Driver",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"open-wda": "./scripts/open-wda.mjs"
|
|
37
|
-
},
|
|
38
|
-
"doctor": {
|
|
39
|
-
"checks": [
|
|
40
|
-
"./build/lib/doctor/required-checks.js",
|
|
41
|
-
"./build/lib/doctor/optional-checks.js"
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
19
|
+
"bin": {},
|
|
20
|
+
"files": [
|
|
21
|
+
"lib",
|
|
22
|
+
"build/lib",
|
|
23
|
+
"scripts",
|
|
24
|
+
"WebDriverAgentMac/Scripts",
|
|
25
|
+
"WebDriverAgentMac/Cartfile",
|
|
26
|
+
"WebDriverAgentMac/Cartfile.resolved",
|
|
27
|
+
"WebDriverAgentMac/WebDriverAgentLib",
|
|
28
|
+
"WebDriverAgentMac/WebDriverAgentMac.xcodeproj",
|
|
29
|
+
"WebDriverAgentMac/WebDriverAgentRunner",
|
|
30
|
+
"WebDriverAgentMac/IntegrationTests",
|
|
31
|
+
"WebDriverAgentMac/WebDriverAgent",
|
|
32
|
+
"!.DS_Store",
|
|
33
|
+
"CHANGELOG.md",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"npm-shrinkwrap.json"
|
|
36
|
+
],
|
|
45
37
|
"type": "module",
|
|
46
38
|
"main": "./build/lib/index.js",
|
|
47
39
|
"types": "./build/lib/index.d.ts",
|
|
@@ -52,67 +44,64 @@
|
|
|
52
44
|
},
|
|
53
45
|
"./package.json": "./package.json"
|
|
54
46
|
},
|
|
55
|
-
"bin": {},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@appium/strongbox": "^1.0.0-rc.1",
|
|
58
|
-
"@colors/colors": "^1.6.0",
|
|
59
|
-
"appium-xcode": "^6.0.0",
|
|
60
|
-
"asyncbox": "^6.3.0",
|
|
61
|
-
"axios": "^1.16.0",
|
|
62
|
-
"portscanner": "^2.2.0",
|
|
63
|
-
"teen_process": "^4.0.4"
|
|
64
|
-
},
|
|
65
47
|
"scripts": {
|
|
66
48
|
"build": "tsc -b",
|
|
67
49
|
"clean": "npm run build -- --clean",
|
|
68
50
|
"rebuild": "npm run clean; npm run build",
|
|
69
51
|
"dev": "npm run build -- --watch",
|
|
70
|
-
"lint": "
|
|
71
|
-
"lint:fix": "
|
|
72
|
-
"format": "
|
|
73
|
-
"format:check": "
|
|
52
|
+
"lint": "oxlint -c oxlint.config.mjs .",
|
|
53
|
+
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
|
|
54
|
+
"format": "oxfmt -c oxfmt.config.mjs .",
|
|
55
|
+
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
|
|
74
56
|
"build:docs": "appium-docs build",
|
|
75
57
|
"dev:docs": "appium-docs build --serve",
|
|
76
58
|
"publish:docs": "appium-docs build --deploy --push -b docs-site -m 'docs: build docs for appium-mac2-driver@%s' --alias latest --use-prefixed-major-deploy-version",
|
|
77
59
|
"install-docs-deps": "appium-docs init --no-mkdocs",
|
|
78
60
|
"prepare": "npm run build",
|
|
79
|
-
"
|
|
80
|
-
"test": "node --test --test-timeout=
|
|
81
|
-
"e2e-test": "npm run build && node --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*.test.js\""
|
|
61
|
+
"test": "node --enable-source-maps --test --test-timeout=60000 \"build/test/unit/**/*.test.js\"",
|
|
62
|
+
"e2e-test": "npm run build && node --enable-source-maps --test --test-concurrency=1 --test-timeout=600000 \"build/test/functional/**/*.test.js\""
|
|
82
63
|
},
|
|
83
|
-
"
|
|
84
|
-
"appium": "^
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@appium/strongbox": "^1.0.0-rc.1",
|
|
66
|
+
"@colors/colors": "^1.6.0",
|
|
67
|
+
"appium-xcode": "^7.1.0",
|
|
68
|
+
"asyncbox": "^6.3.0",
|
|
69
|
+
"axios": "^1.16.0",
|
|
70
|
+
"portscanner": "^2.2.0",
|
|
71
|
+
"teen_process": "^4.0.4"
|
|
85
72
|
},
|
|
86
73
|
"devDependencies": {
|
|
87
74
|
"@appium/docutils": "^2.5.0",
|
|
88
|
-
"@appium/
|
|
89
|
-
"@appium/
|
|
75
|
+
"@appium/oxc-config": "^1.1.0",
|
|
76
|
+
"@appium/semantic-release-config": "^1.1.0",
|
|
77
|
+
"@appium/tsconfig": "^1.2.0",
|
|
90
78
|
"@appium/types": "^1.0.0-rc.1",
|
|
91
|
-
"@semantic-release/changelog": "^6.0.1",
|
|
92
|
-
"@semantic-release/git": "^10.0.1",
|
|
93
79
|
"@types/node": "^26.0.0",
|
|
94
80
|
"@types/portscanner": "^2.1.1",
|
|
95
|
-
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
96
|
-
"prettier": "^3.0.3",
|
|
97
|
-
"semantic-release": "^25.0.2",
|
|
98
|
-
"typescript": "^6.0.2",
|
|
99
81
|
"webdriverio": "^9.0.0"
|
|
100
82
|
},
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"appium": "^3.0.0-rc.2"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
88
|
+
"npm": ">=10"
|
|
89
|
+
},
|
|
90
|
+
"appium": {
|
|
91
|
+
"driverName": "mac2",
|
|
92
|
+
"automationName": "Mac2",
|
|
93
|
+
"platformNames": [
|
|
94
|
+
"Mac"
|
|
95
|
+
],
|
|
96
|
+
"mainClass": "Mac2Driver",
|
|
97
|
+
"scripts": {
|
|
98
|
+
"open-wda": "./scripts/open-wda.mjs"
|
|
99
|
+
},
|
|
100
|
+
"doctor": {
|
|
101
|
+
"checks": [
|
|
102
|
+
"./build/lib/doctor/required-checks.js",
|
|
103
|
+
"./build/lib/doctor/optional-checks.js"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
118
107
|
}
|
package/scripts/open-wda.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import {logger} from 'appium/support.js';
|
|
5
|
+
import {exec} from 'teen_process';
|
|
5
6
|
const XCODEPROJ_NAME = 'WebDriverAgentMac.xcodeproj';
|
|
6
7
|
|
|
7
8
|
const log = logger.getLogger('WDA');
|