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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "appium",
6
6
  "safari"
7
7
  ],
8
- "version": "2.2.0",
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.5.5",
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-gulp-plugins": "^5.4.0",
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-config-appium": "^4.0.1",
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": "^8.0.1",
72
- "node-simctl": "^6.4.0",
78
+ "mocha": "^9.0.0",
73
79
  "pre-commit": "^1.1.3",
74
- "sinon": "^9.0.0",
75
- "wd": "^1.5.0"
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 wd from 'wd';
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 = wd.promiseChainRemote(HOST, PORT);
32
- await driver.init(CAPS);
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.quit();
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.get('https://appium.io/');
43
- const button = await driver.elementByCss('#downloadLink');
44
- await button.text().should.eventually.eql('Download Appium');
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 wd from 'wd';
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 = wd.promiseChainRemote(HOST, PORT);
57
- await driver.init(CAPS);
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.quit();
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.get('https://appium.io/');
68
- const button = await driver.elementByCss('#downloadLink');
69
- await button.text().should.eventually.eql('Download Appium');
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