@applitools/eyes-selenium 4.67.2 → 4.67.3

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,151 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.67.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.2...js/eyes-selenium@4.67.3) (2023-08-18)
4
+
5
+
6
+ ### Code Refactoring
7
+
8
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.5.1
14
+ #### Code Refactoring
15
+
16
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
17
+ * @applitools/logger bumped to 2.0.8
18
+ #### Code Refactoring
19
+
20
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
21
+
22
+
23
+
24
+ * @applitools/socket bumped to 1.1.8
25
+ #### Code Refactoring
26
+
27
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
28
+
29
+
30
+
31
+ * @applitools/req bumped to 1.5.3
32
+ #### Code Refactoring
33
+
34
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
35
+
36
+
37
+
38
+ * @applitools/image bumped to 1.1.3
39
+ #### Code Refactoring
40
+
41
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
42
+
43
+
44
+
45
+ * @applitools/snippets bumped to 2.4.23
46
+ #### Code Refactoring
47
+
48
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
49
+ * @applitools/spec-driver-webdriver bumped to 1.0.42
50
+ #### Code Refactoring
51
+
52
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
53
+
54
+
55
+
56
+ * @applitools/spec-driver-selenium bumped to 1.5.56
57
+ #### Code Refactoring
58
+
59
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
60
+
61
+
62
+
63
+ * @applitools/spec-driver-puppeteer bumped to 1.1.73
64
+ #### Code Refactoring
65
+
66
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
67
+
68
+
69
+
70
+ * @applitools/driver bumped to 1.13.5
71
+ #### Bug Fixes
72
+
73
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
74
+
75
+
76
+ #### Code Refactoring
77
+
78
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
79
+
80
+
81
+
82
+ * @applitools/screenshoter bumped to 3.8.8
83
+ #### Code Refactoring
84
+
85
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
86
+
87
+
88
+
89
+ * @applitools/nml-client bumped to 1.5.8
90
+ #### Code Refactoring
91
+
92
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
93
+
94
+
95
+
96
+ * @applitools/tunnel-client bumped to 1.2.0
97
+ #### Features
98
+
99
+ * replace and destroy tunnels by tunnel id ([#1878](https://github.com/applitools/eyes.sdk.javascript1/issues/1878)) ([22bcc15](https://github.com/applitools/eyes.sdk.javascript1/commit/22bcc15b31457e3da56cdb6f73bee3dcb7e051a1))
100
+
101
+
102
+ #### Code Refactoring
103
+
104
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
105
+
106
+
107
+
108
+ * @applitools/ufg-client bumped to 1.7.1
109
+ #### Code Refactoring
110
+
111
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
112
+
113
+
114
+
115
+ * @applitools/ec-client bumped to 1.7.5
116
+ #### Code Refactoring
117
+
118
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
119
+
120
+
121
+
122
+ * @applitools/core-base bumped to 1.5.1
123
+ #### Code Refactoring
124
+
125
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
126
+
127
+
128
+
129
+ * @applitools/core bumped to 3.9.1
130
+ #### Bug Fixes
131
+
132
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
133
+
134
+
135
+ #### Code Refactoring
136
+
137
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
138
+
139
+
140
+
141
+ * @applitools/eyes bumped to 1.7.3
142
+ #### Code Refactoring
143
+
144
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
145
+
146
+
147
+
148
+
3
149
  ## [4.67.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.1...js/eyes-selenium@4.67.2) (2023-08-10)
4
150
 
5
151
 
package/dist/api.js CHANGED
@@ -29,10 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.closeBatch = exports.BatchClose = exports.Configuration = exports.Target = exports.TargetAutomation = exports.CheckSettings = exports.CheckSettingsAutomation = exports.Eyes = void 0;
30
30
  const extract_environment_1 = require("./extract-environment");
31
31
  const eyes = __importStar(require("@applitools/eyes"));
32
- const spec = __importStar(require("@applitools/spec-driver-selenium"));
32
+ const spec = __importStar(require("./spec-driver"));
33
33
  __exportStar(require("@applitools/eyes"), exports);
34
34
  const environment = (0, extract_environment_1.extractEnvironment)();
35
- const sdk = { spec, agentId: `eyes.selenium/${require('../package.json').version}`, environment };
35
+ const sdk = {
36
+ spec: spec,
37
+ agentId: `eyes.selenium/${require('../package.json').version}`,
38
+ environment,
39
+ };
36
40
  class Eyes extends eyes.Eyes {
37
41
  }
38
42
  exports.Eyes = Eyes;
@@ -40,16 +44,16 @@ Eyes._sdk = sdk;
40
44
  class CheckSettingsAutomation extends eyes.CheckSettingsAutomation {
41
45
  }
42
46
  exports.CheckSettingsAutomation = CheckSettingsAutomation;
43
- CheckSettingsAutomation._spec = spec;
47
+ CheckSettingsAutomation._spec = sdk.spec;
44
48
  class CheckSettings extends CheckSettingsAutomation {
45
49
  }
46
50
  exports.CheckSettings = CheckSettings;
47
- exports.TargetAutomation = { ...eyes.TargetAutomation, spec };
48
- exports.Target = { ...eyes.Target, spec };
51
+ exports.TargetAutomation = { ...eyes.TargetAutomation, spec: sdk.spec };
52
+ exports.Target = { ...eyes.Target, spec: sdk.spec };
49
53
  class Configuration extends eyes.Configuration {
50
54
  }
51
55
  exports.Configuration = Configuration;
52
- Configuration._spec = spec;
56
+ Configuration._spec = sdk.spec;
53
57
  class BatchClose extends eyes.BatchClose {
54
58
  }
55
59
  exports.BatchClose = BatchClose;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.67.2",
3
+ "version": "4.67.3",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -46,20 +46,20 @@
46
46
  "test:sauce": "MOCHA_ONLY_TAGS=sauce run test:coverage",
47
47
  "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' -r @applitools/test-utils/mocha-hooks/docker --parallel --jobs ${MOCHA_JOBS:-15} --exit",
48
48
  "setup": "run --top-level browsers:setup",
49
- "up:framework": "run --top-level add-silent selenium-webdriver"
49
+ "up:framework": "yarn add --dev --caret selenium-webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
50
50
  },
51
51
  "dependencies": {
52
- "@applitools/eyes": "1.7.2",
53
- "@applitools/spec-driver-selenium": "1.5.55"
52
+ "@applitools/eyes": "1.7.3",
53
+ "@applitools/spec-driver-selenium": "1.5.56"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@applitools/api-extractor": "^1.2.21",
57
- "@applitools/bongo": "^5.4.3",
58
- "@applitools/generic": "^3.3.8",
57
+ "@applitools/bongo": "^5.6.1",
58
+ "@applitools/generic": "^3.3.9",
59
59
  "@applitools/test-utils": "^1.5.17",
60
60
  "@types/node": "^12.20.55",
61
61
  "@types/selenium-webdriver": "^4.1.1",
62
- "chromedriver": "^114.0.3",
62
+ "chromedriver": "^115.0.1",
63
63
  "selenium-webdriver": "4.4.0"
64
64
  },
65
65
  "peerDependencies": {
package/types/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  export type Driver = import('selenium-webdriver').WebDriver & { __applitoolsBrand?: undefined; };
2
2
  export type Element = import('selenium-webdriver').WebElement & { __applitoolsBrand?: undefined; };
3
3
  export type Selector = (import('selenium-webdriver').By | import('selenium-webdriver').ByHash | import('selenium-webdriver').RelativeBy | { using: string; value: string; } | ((webdriver: import('selenium-webdriver').WebDriver) => Promise<any>)) & { __applitoolsBrand?: undefined; };
4
- export type SpecType = { driver: Driver; context: Driver; element: Element; selector: Selector; };
4
+ export type SpecType = {
5
+ driver: Driver;
6
+ context: Driver;
7
+ element: Element;
8
+ selector: Selector;
9
+ secondary: never;
10
+ };
5
11
  export class Eyes {
6
12
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
7
13
  static getExecutionCloudUrl(config?: undefined | ConfigurationPlain): Promise<string>;
@@ -351,7 +357,7 @@ export type TargetAutomation = {
351
357
  webview(webview?: undefined | string): CheckSettingsAutomation;
352
358
  webview(webview?: undefined | boolean): CheckSettingsAutomation;
353
359
  };
354
- export const Target: TargetImage & TargetAutomation;
360
+ export type Target = TargetImage & TargetAutomation;
355
361
  export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
356
362
  export type ConfigurationPlain = {
357
363
  debugScreenshots?: undefined | { save: boolean; path?: undefined | string; prefix?: undefined | string; };