@applitools/spec-driver-selenium 1.5.72 → 1.5.74
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 +14 -0
- package/dist/spec-driver.js +2 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.74](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-selenium@1.5.73...js/spec-driver-selenium@1.5.74) (2024-04-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* trigger JS release ([6022ac8](https://github.com/Applitools-Dev/sdk/commit/6022ac85626287a37101b65732e9d46c63bbd8b8))
|
|
9
|
+
|
|
10
|
+
## [1.5.73](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-selenium@1.5.72...js/spec-driver-selenium@1.5.73) (2024-03-31)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* remove getSessionDetails call in JS Selenium ([#2280](https://github.com/Applitools-Dev/sdk/issues/2280)) ([d15748f](https://github.com/Applitools-Dev/sdk/commit/d15748f68c931f2f84c13efd8472399c1ff72e25))
|
|
16
|
+
|
|
3
17
|
## [1.5.72](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-selenium@1.5.71...js/spec-driver-selenium@1.5.72) (2024-03-18)
|
|
4
18
|
|
|
5
19
|
|
package/dist/spec-driver.js
CHANGED
|
@@ -77,7 +77,6 @@ function isStaleElementError(error) {
|
|
|
77
77
|
}
|
|
78
78
|
exports.isStaleElementError = isStaleElementError;
|
|
79
79
|
function toDriver(driver) {
|
|
80
|
-
driver.getExecutor().defineCommand('getSessionDetails', 'GET', '/session/:sessionId');
|
|
81
80
|
driver.getExecutor().defineCommand('getOrientation', 'GET', '/session/:sessionId/orientation');
|
|
82
81
|
driver.getExecutor().defineCommand('getSystemBars', 'GET', '/session/:sessionId/appium/device/system_bars');
|
|
83
82
|
driver.getExecutor().defineCommand('getWindowSize', 'GET', '/session/:sessionId/window/current/size');
|
|
@@ -231,10 +230,9 @@ async function getDriverInfo(driver) {
|
|
|
231
230
|
}
|
|
232
231
|
exports.getDriverInfo = getDriverInfo;
|
|
233
232
|
async function getCapabilities(driver) {
|
|
234
|
-
|
|
235
|
-
return ((_a = (await executeCustomCommand(driver, new command_1.Command('getSessionDetails')).catch(() => null))) !== null && _a !== void 0 ? _a : (await driver
|
|
233
|
+
return await driver
|
|
236
234
|
.getCapabilities()
|
|
237
|
-
.then(capabilities => Array.from(capabilities.keys()).reduce((obj, key) => Object.assign(obj, { [key]: capabilities.get(key) }), {}))
|
|
235
|
+
.then(capabilities => Array.from(capabilities.keys()).reduce((obj, key) => Object.assign(obj, { [key]: capabilities.get(key) }), {}));
|
|
238
236
|
}
|
|
239
237
|
exports.getCapabilities = getCapabilities;
|
|
240
238
|
async function getWindowSize(driver) {
|