@applitools/spec-driver-selenium 1.5.62 → 1.5.64

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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.64](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.63...js/spec-driver-selenium@1.5.64) (2023-11-21)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.6.3
9
+ #### Bug Fixes
10
+
11
+ * don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
12
+ * @applitools/logger bumped to 2.0.13
13
+
14
+ * @applitools/driver bumped to 1.15.1
15
+
16
+
17
+ ## [1.5.63](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.62...js/spec-driver-selenium@1.5.63) (2023-11-07)
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * @applitools/driver bumped to 1.15.0
23
+ #### Features
24
+
25
+ * 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))
26
+
3
27
  ## [1.5.62](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.61...js/spec-driver-selenium@1.5.62) (2023-10-17)
4
28
 
5
29
 
package/dist/index.js CHANGED
@@ -29,7 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  const spec = __importStar(require("./spec-driver"));
30
30
  if (!process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION) {
31
31
  try {
32
- const version = process.env.APPLITOOLS_FRAMEWORK_VERSION || require('selenium-webdriver/package.json').version;
32
+ let manifestPath;
33
+ try {
34
+ manifestPath = require.resolve('selenium-webdriver/package.json', { paths: [`${process.cwd()}/node_modules`] });
35
+ }
36
+ catch {
37
+ manifestPath = 'selenium-webdriver/package.json';
38
+ }
39
+ const version = process.env.APPLITOOLS_FRAMEWORK_VERSION || require(manifestPath).version;
33
40
  const [major] = version.split('.', 1);
34
41
  process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION = major;
35
42
  }
@@ -186,7 +186,14 @@ async function getElementText(_driver, element) {
186
186
  exports.getElementText = getElementText;
187
187
  async function hover(driver, element) {
188
188
  if (process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION === '3') {
189
- const { ActionSequence } = require('selenium-webdriver');
189
+ let frameworkPath;
190
+ try {
191
+ frameworkPath = require.resolve('selenium-webdriver', { paths: [`${process.cwd()}/node_modules`] });
192
+ }
193
+ catch {
194
+ frameworkPath = 'selenium-webdriver';
195
+ }
196
+ const { ActionSequence } = require(frameworkPath);
190
197
  const action = new ActionSequence(driver);
191
198
  await action.mouseMove(element).perform();
192
199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-selenium",
3
- "version": "1.5.62",
3
+ "version": "1.5.64",
4
4
  "keywords": [
5
5
  "selenium",
6
6
  "selenium-webdriver",
@@ -40,13 +40,13 @@
40
40
  "scripts": {
41
41
  "lint": "run --top-level eslint '**/*.ts'",
42
42
  "build": "run --top-level tspc --project ./tsconfig.build.json",
43
- "test": "run --top-level mocha './test/**/*.spec.ts' -r @applitools/test-utils/mocha-hooks/docker --exit",
43
+ "test": "run --top-level mocha './test/**/*.spec.ts' --exit",
44
44
  "setup": "run --top-level browsers:setup",
45
- "up:framework": "yarn add --dev --caret selenium-webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
45
+ "up:framework": "echo \"$(jq '.devDependencies[\"selenium-webdriver\"] = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
46
46
  },
47
47
  "dependencies": {
48
- "@applitools/driver": "1.14.4",
49
- "@applitools/utils": "1.6.2"
48
+ "@applitools/driver": "1.15.1",
49
+ "@applitools/utils": "1.6.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@applitools/api-extractor": "^1.2.22",
@@ -54,7 +54,7 @@
54
54
  "@types/node": "^12.20.55",
55
55
  "@types/selenium-webdriver": "^4.1.15",
56
56
  "nock": "^13.3.2",
57
- "selenium-webdriver": "4.4.0"
57
+ "selenium-webdriver": "^4.15.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "selenium-webdriver": ">=3.6.0"