@applitools/driver 1.5.3 → 1.5.6

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/dist/driver.js CHANGED
@@ -122,10 +122,12 @@ class Driver {
122
122
  return (_b = (_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isMobile) !== null && _b !== void 0 ? _b : false;
123
123
  }
124
124
  get isIOS() {
125
- return this.platformName === 'iOS';
125
+ var _a;
126
+ return ((_a = this.platformName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'ios';
126
127
  }
127
128
  get isAndroid() {
128
- return this.platformName === 'Android';
129
+ var _a;
130
+ return ((_a = this.platformName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'android';
129
131
  }
130
132
  get isIE() {
131
133
  return /(internet explorer|ie)/i.test(this.browserName);
package/dist/element.js CHANGED
@@ -49,8 +49,11 @@ class Element {
49
49
  let elementToUse = options.element;
50
50
  if (options.root) {
51
51
  elementToUse = options.root;
52
+ this._target = elementToUse;
53
+ }
54
+ else {
55
+ this._target = (_c = (_b = (_a = this._spec).transformElement) === null || _b === void 0 ? void 0 : _b.call(_a, elementToUse)) !== null && _c !== void 0 ? _c : elementToUse;
52
56
  }
53
- this._target = (_c = (_b = (_a = this._spec).transformElement) === null || _b === void 0 ? void 0 : _b.call(_a, elementToUse)) !== null && _c !== void 0 ? _c : elementToUse;
54
57
  // Some frameworks contains information about the selector inside an element
55
58
  this._selector = (_d = options.selector) !== null && _d !== void 0 ? _d : (_f = (_e = this._spec).extractSelector) === null || _f === void 0 ? void 0 : _f.call(_e, elementToUse);
56
59
  this._index = options.index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.5.3",
3
+ "version": "1.5.6",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,12 +73,12 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@applitools/snippets": "2.2.1",
77
- "@applitools/types": "1.2.1",
76
+ "@applitools/snippets": "2.2.2",
77
+ "@applitools/types": "1.2.2",
78
78
  "@applitools/utils": "1.2.13"
79
79
  },
80
80
  "devDependencies": {
81
- "@applitools/sdk-release-kit": "0.13.11",
81
+ "@applitools/bongo": "^2.0.0",
82
82
  "@types/mocha": "^9.0.0",
83
83
  "@types/node": "^16.3.3",
84
84
  "@typescript-eslint/eslint-plugin": "^4.28.3",
package/CHANGELOG.md DELETED
@@ -1,247 +0,0 @@
1
- # Change Log
2
-
3
- ## Unreleased
4
-
5
-
6
- ## 1.5.3 - 2022/3/12
7
-
8
- - when handling shadowRoot, send the element containing the doc frage and the root itself to element constructor
9
- - change the sensible default value for touchPadding when running on Android to 20 (from 24)
10
- - add error logging in element.ts when unable to complete a getAttribute lookup
11
- - updated to @applitools/snippets@2.2.1 (from 2.2.0)
12
- - updated to @applitools/types@1.2.1 (from 1.2.0)
13
-
14
- ## 1.5.2 - 2022/3/7
15
-
16
- - exclude iOS Safari from dynamic SRE calculation
17
-
18
- ## 1.5.1 - 2022/3/7
19
-
20
- - fix `getScrollingElement` in mobile native
21
-
22
- ## 1.5.0 - 2022/3/6
23
-
24
- - add `waitForSelector` method
25
- - support assigning 'scrollingElement' as 'body' or 'html' dom element
26
- - updated to @applitools/snippets@2.2.0 (from 2.1.15)
27
- - updated to @applitools/types@1.2.0 (from 1.0.25)
28
-
29
- ## 1.4.16 - 2022/2/16
30
-
31
- - updated to @applitools/snippets@2.1.15 (from 2.1.14)
32
-
33
- ## 1.4.15 - 2022/2/15
34
-
35
- - updated to @applitools/snippets@2.1.14 (from 2.1.13)
36
-
37
- ## 1.4.14 - 2022/2/15
38
-
39
- - add `viewportScale` getter to `Driver` class
40
- - updated to @applitools/snippets@2.1.13 (from 2.1.12)
41
- - updated to @applitools/types@1.0.25 (from 1.0.24)
42
- - updated to @applitools/utils@1.2.13 (from 1.2.12)
43
-
44
- ## 1.4.13 - 2022/2/10
45
-
46
- - fix android helper
47
- - updated to @applitools/utils@1.2.12 (from 1.2.11)
48
-
49
- ## 1.4.12 - 2022/2/8
50
-
51
- - fix usage of `-ios class chain` selectors
52
-
53
- ## 1.4.11 - 2022/2/8
54
-
55
- - use `-ios class chain` selectors instead of `class name` for iOS specific elements
56
-
57
- ## 1.4.10 - 2022/2/4
58
-
59
- - updated to @applitools/types@1.0.24 (from 1.0.23)
60
-
61
- ### 📝 DOCUMENTATION
62
- - Create a README.md with a description for basic concepts and spec driver methods.
63
-
64
- ## 1.4.9 - 2022/1/12
65
-
66
- - handle case with `spec.getCookies` throws an error when trying to get cookies of the browser
67
-
68
- ## 1.4.8 - 2022/1/5
69
-
70
- - handle legacy appium capabilities
71
- - updated to @applitools/utils@1.2.11 (from 1.2.5)
72
-
73
- ## 1.4.7 - 2021/12/22
74
-
75
- - updated to @applitools/snippets@2.1.12 (from 2.1.11)
76
-
77
- ## 1.4.6 - 2021/12/22
78
-
79
- - extract device orientation in `Driver`'s `init` and provide readonly access through the `orientation` getter of the `Driver`
80
- - updated to @applitools/snippets@2.1.11 (from 2.1.10)
81
- - updated to @applitools/types@1.0.23 (from 1.0.22)
82
- - updated to @applitools/utils@1.2.5 (from 1.2.4)
83
-
84
- ## 1.4.5 - 2021/12/20
85
-
86
- - improve native android app scrolling performance
87
- - fix bug with `Buffer.from` and base64
88
- - updated to @applitools/snippets@2.1.10 (from 2.1.9)
89
-
90
- ## 1.4.3 - 2021/12/17
91
-
92
- - convert base64 result of `spec.takeScreenshot` to `Buffer` before return it from `Driver`'s `takeScreenshot` method
93
- - updated to @applitools/snippets@2.1.9 (from 2.1.8)
94
-
95
- ## 1.4.2 - 2021/12/16
96
-
97
- - fix exports subpathes
98
-
99
- ## 1.4.1 - 2021/12/16
100
-
101
- - updated to @applitools/snippets@2.1.8 (from 2.1.7)
102
-
103
- ## 1.4.0 - 2021/12/16
104
-
105
- - improve native apps scrolling automation
106
- - fix ios safe area related issues
107
- - add helper library abstraction to cover appium edge cases
108
- - made `setViewportSize` more reliable in worst case scenario and faster in best case scenario
109
- - updated to @applitools/types@1.0.22 (from 1.0.21)
110
-
111
- ## 1.3.5 - 2021/11/23
112
-
113
- - updated to @applitools/types@1.0.21 (from 1.0.20)
114
-
115
- ## 1.3.4 - 2021/11/18
116
-
117
- - fix capabilities parsing for native apps
118
-
119
- ## 1.3.3 - 2021/11/14
120
-
121
- - do not throw if `getCookies` method is missed in spec driver
122
-
123
- ## 1.3.2 - 2021/11/14
124
-
125
- - adjust scrolling algorithm on native devices
126
-
127
- ## 1.3.1 - 2021/11/14
128
-
129
- - add in-house capability parsing and system bars size handling mechanisms
130
- - adjust scrolling algorithm on native devices
131
- - support cookies
132
- - updated to @applitools/types@1.0.20 (from 1.0.19)
133
-
134
- ## 1.3.0 - 2021/11/10
135
-
136
- - updated to @applitools/types@1.0.19 (from 1.0.18)
137
-
138
- ## 1.3.0 - 2021/11/10
139
-
140
- - updated to @applitools/types@1.0.19 (from 1.0.18)
141
-
142
- ## 1.2.7 - 2021/10/30
143
-
144
- - updated to @applitools/types@1.0.18 (from 1.0.14)
145
- - updated to @applitools/utils@1.2.4 (from 1.2.3)
146
-
147
- ## 1.2.6 - 2021/10/7
148
-
149
- - fix issue with fractional viewport size on mobile devices
150
-
151
- ## 1.2.5 - 2021/10/5
152
-
153
- - fix issue with wrong user agent overrides valid driver info
154
-
155
- ## 1.2.4 - 2021/9/24
156
-
157
- - fix issue with switching to the duplicated context
158
-
159
- ## 1.2.3 - 2021/9/24
160
-
161
- - updated to @applitools/types@1.0.14 (from 1.0.13)
162
-
163
- ## 1.2.2 - 2021/9/10
164
-
165
- - no changes
166
-
167
- ## 1.2.1 - 2021/9/10
168
-
169
- - fix mocked scripts in MockDriver
170
-
171
- ## 1.2.0 - 2021/9/9
172
-
173
- - add support for deep selectors
174
- - updated to @applitools/snippets@2.1.7 (from 2.1.6)
175
- - updated to @applitools/types@1.0.13 (from 1.0.12)
176
- - updated to @applitools/utils@1.2.3 (from 1.2.2)
177
-
178
- ## 1.1.5 - 2021/9/6
179
-
180
- - updated to @applitools/snippets@2.1.6 (from 2.1.5)
181
-
182
- ## 1.1.4 - 2021/9/6
183
-
184
- - add support of reach spec selectors with shadow properties
185
- - updated to @applitools/snippets@2.1.5 (from 2.1.4)
186
- - updated to @applitools/types@1.0.12 (from 1.0.8)
187
-
188
- ## 1.1.3 - 2021/8/13
189
-
190
- - add `statusBarHeight` getter to the driver
191
- - handle base64 screenshots with line breaks
192
- - handle iOS issue with returning actual scroll position after scrolling
193
- - updated to @applitools/types@1.0.8 (from 1.0.6)
194
-
195
- ## 1.1.2 - 2021/8/8
196
-
197
- - fix default method to compare elements
198
-
199
- ## 1.1.1 - 2021/8/7
200
-
201
- - improve context and element location calculations
202
- - updated to @applitools/utils@1.2.2 (from 1.2.1)
203
-
204
- ## 1.1.0 - 2021/8/4
205
-
206
- - add types support
207
- - add default implementation for element comparison
208
- - add native device automation support
209
- - updated to @applitools/types@1.0.5 (from 1.0.4)
210
- - updated to @applitools/snippets@2.1.4 (from 2.1.3)
211
- - updated to @applitools/types@1.0.6 (from 1.0.5)
212
- - updated to @applitools/utils@1.2.1 (from 1.2.0)
213
-
214
- ## 1.0.7 - 2021/6/8
215
-
216
- - replace setWindowRect with setWindowSize
217
-
218
- ## 1.0.6 - 2021/5/24
219
-
220
- - updated to @applitools/utils@1.2.0 (from 1.1.3)
221
-
222
- ## 1.0.5 - 2021/5/11
223
-
224
- - updated to @applitools/snippets@2.1.3 (from 2.1.1)
225
- - updated to @applitools/utils@1.1.3 (from 1.0.1)
226
-
227
- ## 1.0.4 - 2021/1/27
228
-
229
- - no changes
230
-
231
- ## 1.0.3 - 2021/1/27
232
-
233
- - chore: add husky
234
- - updated to @applitools/snippets@2.1.1 (from 2.1.0)
235
- - updated to @applitools/utils@1.0.1 (from 1.0.0)
236
-
237
- ## 1.0.2 - 2020/12/29
238
-
239
- - add `setTransforms` method to element
240
- - add `setTransforms` method to element
241
- ## 1.0.1 - 2020/12/1
242
-
243
- - add getTransforms method to the element
244
-
245
- ## 1.0.0 - 2020/12/1
246
-
247
- - Provide a framework-agnostic way to work with webdriver/cdp drivers