@applitools/spec-driver-webdriver 1.0.47 → 1.0.49

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 CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.49](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.48...js/spec-driver-webdriver@1.0.49) (2023-11-07)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/driver bumped to 1.15.0
9
+ #### Features
10
+
11
+ * added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
12
+
13
+ ## [1.0.48](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.47...js/spec-driver-webdriver@1.0.48) (2023-10-17)
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/utils bumped to 1.6.2
19
+ #### Code Refactoring
20
+
21
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
22
+ * @applitools/logger bumped to 2.0.12
23
+ #### Code Refactoring
24
+
25
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
26
+
27
+
28
+
29
+ * @applitools/driver bumped to 1.14.4
30
+ #### Code Refactoring
31
+
32
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
33
+
34
+
35
+
36
+
3
37
  ## [1.0.47](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.46...js/spec-driver-webdriver@1.0.47) (2023-09-29)
4
38
 
5
39
 
@@ -76,47 +76,20 @@ function extractEnvironment(capabilities) {
76
76
  }
77
77
  function command(method, url, body) {
78
78
  if (getFrameworkMajorVersion() < 8) {
79
- let commandPath;
80
- try {
81
- commandPath = require.resolve('webdriver/build/command', { paths: [`${process.cwd()}/node_modules`] });
82
- }
83
- catch {
84
- commandPath = 'webdriver/build/command';
85
- }
86
- const { default: command } = require(commandPath);
79
+ const { default: command } = require('webdriver/build/command');
87
80
  return command(method, url, body);
88
81
  }
89
82
  else {
90
- let frameworkPath;
91
- try {
92
- frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] });
93
- }
94
- catch {
95
- frameworkPath = 'webdriver';
96
- }
97
- const { command } = require(frameworkPath);
83
+ const { command } = require('webdriver');
98
84
  return command(method, url, body);
99
85
  }
100
86
  }
101
87
  function getFrameworkMajorVersion() {
102
- let version;
103
- try {
104
- version = require(require.resolve('webdriver/package.json', { paths: [`${process.cwd()}/node_modules`] })).version;
105
- }
106
- catch {
107
- version = require('webdriver/package.json').version;
108
- }
88
+ const version = require('webdriver/package.json').version;
109
89
  return Number.parseInt(version);
110
90
  }
111
91
  function getWebDriver() {
112
- let frameworkPath;
113
- try {
114
- frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] });
115
- }
116
- catch {
117
- frameworkPath = 'webdriver';
118
- }
119
- return getFrameworkMajorVersion() < 8 ? require(frameworkPath).default : require(frameworkPath);
92
+ return getFrameworkMajorVersion() < 8 ? require('webdriver').default : require('webdriver');
120
93
  }
121
94
  function isDriver(driver) {
122
95
  if (!driver)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-webdriver",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "keywords": [
5
5
  "webdriver",
6
6
  "chrome devtools protocol",
@@ -44,13 +44,13 @@
44
44
  "scripts": {
45
45
  "lint": "run --top-level eslint '**/*.ts'",
46
46
  "build": "run --top-level tspc --project ./tsconfig.build.json",
47
- "test": "run --top-level mocha './test/**/*.spec.ts' -r @applitools/test-utils/mocha-hooks/docker --exit",
47
+ "test": "run --top-level mocha './test/**/*.spec.ts' --exit",
48
48
  "setup": "run --top-level browsers:setup",
49
- "up:framework": "yarn add --dev --caret webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
49
+ "up:framework": "echo \"$(jq '.devDependencies.webdriver = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
50
50
  },
51
51
  "dependencies": {
52
- "@applitools/driver": "1.14.3",
53
- "@applitools/utils": "1.6.1",
52
+ "@applitools/driver": "1.15.0",
53
+ "@applitools/utils": "1.6.2",
54
54
  "http-proxy-agent": "5.0.0",
55
55
  "https-proxy-agent": "5.0.1"
56
56
  },
@@ -60,7 +60,7 @@
60
60
  "@applitools/test-utils": "^1.5.17",
61
61
  "@types/node": "^12.20.55",
62
62
  "nock": "^13.3.2",
63
- "webdriver": "^8.14.3"
63
+ "webdriver": "^7.31.1"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "webdriver": ">=6.0.0"