@applitools/spec-driver-selenium 1.5.22 → 1.5.24
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/spec-driver.js +4 -7
- package/package.json +5 -5
package/dist/spec-driver.js
CHANGED
|
@@ -263,13 +263,10 @@ async function getDriverInfo(driver) {
|
|
|
263
263
|
}
|
|
264
264
|
exports.getDriverInfo = getDriverInfo;
|
|
265
265
|
async function getCapabilities(driver) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
const capabilities = await driver.getCapabilities();
|
|
271
|
-
return Array.from(capabilities.keys()).reduce((obj, key) => Object.assign(obj, { key: capabilities.get(key) }), {});
|
|
272
|
-
}
|
|
266
|
+
var _a;
|
|
267
|
+
return ((_a = (await executeCustomCommand(driver, new command_1.Command('getSessionDetails')).catch(() => null))) !== null && _a !== void 0 ? _a : (await driver
|
|
268
|
+
.getCapabilities()
|
|
269
|
+
.then(capabilities => Array.from(capabilities.keys()).reduce((obj, key) => Object.assign(obj, { [key]: capabilities.get(key) }), {}))));
|
|
273
270
|
}
|
|
274
271
|
exports.getCapabilities = getCapabilities;
|
|
275
272
|
async function getTitle(driver) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-selenium",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.24",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"selenium",
|
|
6
6
|
"selenium-webdriver",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@applitools/driver": "1.11.
|
|
66
|
-
"@applitools/utils": "1.3.
|
|
65
|
+
"@applitools/driver": "1.11.26",
|
|
66
|
+
"@applitools/utils": "1.3.28"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@applitools/api-extractor": "^1.2.11",
|
|
70
|
-
"@applitools/bongo": "2.2.
|
|
70
|
+
"@applitools/bongo": "2.2.2",
|
|
71
71
|
"@applitools/scripts": "1.2.0",
|
|
72
|
-
"@applitools/test-utils": "1.5.
|
|
72
|
+
"@applitools/test-utils": "1.5.9",
|
|
73
73
|
"@types/mocha": "^9.1.1",
|
|
74
74
|
"@types/node": "12",
|
|
75
75
|
"@types/selenium-webdriver": "^4.1.1",
|