appium-safari-driver 2.2.0 → 3.0.4
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/.eslintrc +1 -1
- package/.github/workflows/publish.js.yml +30 -0
- package/.releaserc +12 -0
- package/LICENSE +201 -0
- package/README.md +13 -5
- package/build/index.js +9 -6
- package/build/lib/commands/cookies.js +21 -0
- package/build/lib/commands/find.js +3 -3
- package/build/lib/commands/index.js +6 -2
- package/build/lib/commands/record-screen.js +329 -0
- package/build/lib/driver.js +9 -5
- package/build/lib/logger.js +3 -3
- package/build/lib/safari.js +10 -10
- package/build/lib/server.js +4 -4
- package/build/test/functional/desktop-driver-e2e-specs.js +11 -8
- package/build/test/functional/mobile-driver-e2e-specs.js +11 -8
- package/build/test/utils.js +1 -1
- package/gulpfile.js +3 -2
- package/index.js +6 -3
- package/lib/commands/cookies.js +8 -0
- package/lib/commands/find.js +1 -1
- package/lib/commands/index.js +4 -0
- package/lib/commands/record-screen.js +310 -0
- package/lib/driver.js +6 -2
- package/lib/logger.js +1 -1
- package/lib/safari.js +2 -2
- package/lib/server.js +3 -1
- package/npm-shrinkwrap.json +2180 -0
- package/package.json +19 -12
- package/test/functional/desktop-driver-e2e-specs.js +10 -7
- package/test/functional/mobile-driver-e2e-specs.js +10 -7
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"appium",
|
|
6
6
|
"safari"
|
|
7
7
|
],
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "3.0.4",
|
|
9
9
|
"author": "appium",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"repository": {
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"lib": "lib"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@appium/base-driver": "^8.0.0",
|
|
37
|
+
"@appium/support": "^2.46.0",
|
|
36
38
|
"@babel/runtime": "^7.0.0",
|
|
37
|
-
"appium-base-driver": "^7.1.0",
|
|
38
|
-
"appium-support": "^2.46.0",
|
|
39
39
|
"asyncbox": "^2.0.2",
|
|
40
40
|
"bluebird": "^3.5.1",
|
|
41
41
|
"lodash": "^4.17.4",
|
|
42
|
+
"node-simctl": "^7.0.1",
|
|
42
43
|
"portscanner": "2.2.0",
|
|
43
|
-
"source-map-support": "^0.
|
|
44
|
-
"teen_process": "^1.15.0"
|
|
45
|
-
"yargs": "^16.1.0"
|
|
44
|
+
"source-map-support": "^0.x",
|
|
45
|
+
"teen_process": "^1.15.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "gulp transpile",
|
|
@@ -63,15 +63,22 @@
|
|
|
63
63
|
"precommit-test"
|
|
64
64
|
],
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"appium
|
|
66
|
+
"@appium/gulp-plugins": "^6.0.0",
|
|
67
|
+
"@appium/eslint-config-appium": "^5.0.0",
|
|
68
|
+
"@babel/core": "^7.16.0",
|
|
69
|
+
"@babel/eslint-parser": "^7.16.3",
|
|
70
|
+
"@semantic-release/git": "^10.0.1",
|
|
67
71
|
"chai": "^4.1.2",
|
|
68
72
|
"chai-as-promised": "^7.1.1",
|
|
69
|
-
"eslint
|
|
73
|
+
"eslint": "^7.32.0",
|
|
74
|
+
"eslint-plugin-import": "^2.25.3",
|
|
75
|
+
"eslint-plugin-mocha": "^9.0.0",
|
|
76
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
70
77
|
"gulp": "^4.0.0",
|
|
71
|
-
"mocha": "^
|
|
72
|
-
"node-simctl": "^6.4.0",
|
|
78
|
+
"mocha": "^9.0.0",
|
|
73
79
|
"pre-commit": "^1.1.3",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
80
|
+
"semantic-release": "^19.0.2",
|
|
81
|
+
"sinon": "^13.0.0",
|
|
82
|
+
"webdriverio": "^7.0.0"
|
|
76
83
|
}
|
|
77
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { remote } from 'webdriverio';
|
|
2
2
|
import { startServer } from '../..';
|
|
3
3
|
import chaiAsPromised from 'chai-as-promised';
|
|
4
4
|
import chai from 'chai';
|
|
@@ -28,20 +28,23 @@ describe('Desktop SafariDriver', function () {
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
beforeEach(async function () {
|
|
31
|
-
driver =
|
|
32
|
-
|
|
31
|
+
driver = await remote({
|
|
32
|
+
hostname: HOST,
|
|
33
|
+
port: PORT,
|
|
34
|
+
capabilities: CAPS,
|
|
35
|
+
});
|
|
33
36
|
});
|
|
34
37
|
afterEach(async function () {
|
|
35
38
|
if (driver) {
|
|
36
|
-
await driver.
|
|
39
|
+
await driver.deleteSession();
|
|
37
40
|
driver = null;
|
|
38
41
|
}
|
|
39
42
|
});
|
|
40
43
|
|
|
41
44
|
it('should start and stop a session', async function () {
|
|
42
|
-
await driver.
|
|
43
|
-
const button = await driver
|
|
44
|
-
await button.
|
|
45
|
+
await driver.url('https://appium.io/');
|
|
46
|
+
const button = await driver.$('#downloadLink');
|
|
47
|
+
await button.getText().should.eventually.eql('Download Appium');
|
|
45
48
|
});
|
|
46
49
|
});
|
|
47
50
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { remote } from 'webdriverio';
|
|
2
2
|
import { startServer } from '../..';
|
|
3
3
|
import chaiAsPromised from 'chai-as-promised';
|
|
4
4
|
import chai from 'chai';
|
|
@@ -53,20 +53,23 @@ describe('Mobile SafariDriver', function () {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
beforeEach(async function () {
|
|
56
|
-
driver =
|
|
57
|
-
|
|
56
|
+
driver = await remote({
|
|
57
|
+
hostname: HOST,
|
|
58
|
+
port: PORT,
|
|
59
|
+
capabilities: CAPS,
|
|
60
|
+
});
|
|
58
61
|
});
|
|
59
62
|
afterEach(async function () {
|
|
60
63
|
if (driver) {
|
|
61
|
-
await driver.
|
|
64
|
+
await driver.deleteSession();
|
|
62
65
|
driver = null;
|
|
63
66
|
}
|
|
64
67
|
});
|
|
65
68
|
|
|
66
69
|
it('should start and stop a session', async function () {
|
|
67
|
-
await driver.
|
|
68
|
-
const button = await driver
|
|
69
|
-
await button.
|
|
70
|
+
await driver.url('https://appium.io/');
|
|
71
|
+
const button = await driver.$('#downloadLink');
|
|
72
|
+
await button.getText().should.eventually.eql('Download Appium');
|
|
70
73
|
});
|
|
71
74
|
});
|
|
72
75
|
|