@applitools/driver
Advanced tools
Comparing version 1.9.22 to 1.9.23
@@ -147,4 +147,4 @@ "use strict"; | ||
async init() { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2; | ||
var _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3; | ||
var _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15; | ||
const capabilities = await ((_b = (_a = this._spec).getCapabilities) === null || _b === void 0 ? void 0 : _b.call(_a, this.target)); | ||
@@ -160,5 +160,5 @@ this._logger.log('Driver capabilities', capabilities); | ||
if (this.isWeb) { | ||
(_f = (_3 = this._driverInfo).pixelRatio) !== null && _f !== void 0 ? _f : (_3.pixelRatio = await this.execute(snippets.getPixelRatio)); | ||
(_g = (_4 = this._driverInfo).viewportScale) !== null && _g !== void 0 ? _g : (_4.viewportScale = await this.execute(snippets.getViewportScale)); | ||
(_h = (_5 = this._driverInfo).userAgent) !== null && _h !== void 0 ? _h : (_5.userAgent = await this.execute(snippets.getUserAgent)); | ||
(_f = (_4 = this._driverInfo).pixelRatio) !== null && _f !== void 0 ? _f : (_4.pixelRatio = await this.execute(snippets.getPixelRatio)); | ||
(_g = (_5 = this._driverInfo).viewportScale) !== null && _g !== void 0 ? _g : (_5.viewportScale = await this.execute(snippets.getViewportScale)); | ||
(_h = (_6 = this._driverInfo).userAgent) !== null && _h !== void 0 ? _h : (_6.userAgent = await this.execute(snippets.getUserAgent)); | ||
if (this._driverInfo.userAgent) { | ||
@@ -169,4 +169,4 @@ const userAgentInfo = (0, user_agent_1.parseUserAgent)(this._driverInfo.userAgent); | ||
if (this._driverInfo.isMobile) { | ||
(_l = (_6 = this._driverInfo).platformName) !== null && _l !== void 0 ? _l : (_6.platformName = userAgentInfo.platformName); | ||
(_m = (_7 = this._driverInfo).platformVersion) !== null && _m !== void 0 ? _m : (_7.platformVersion = userAgentInfo.platformVersion); | ||
(_l = (_7 = this._driverInfo).platformName) !== null && _l !== void 0 ? _l : (_7.platformName = userAgentInfo.platformName); | ||
(_m = (_8 = this._driverInfo).platformVersion) !== null && _m !== void 0 ? _m : (_8.platformVersion = userAgentInfo.platformVersion); | ||
} | ||
@@ -178,4 +178,4 @@ else { | ||
} | ||
(_q = (_8 = this._driverInfo).features) !== null && _q !== void 0 ? _q : (_8.features = {}); | ||
(_r = (_9 = this._driverInfo.features).allCookies) !== null && _r !== void 0 ? _r : (_9.allCookies = /chrome/i.test(this._driverInfo.browserName) && !this._driverInfo.isMobile); | ||
(_q = (_9 = this._driverInfo).features) !== null && _q !== void 0 ? _q : (_9.features = {}); | ||
(_r = (_10 = this._driverInfo.features).allCookies) !== null && _r !== void 0 ? _r : (_10.allCookies = /chrome/i.test(this._driverInfo.browserName) && !this._driverInfo.isMobile); | ||
} | ||
@@ -185,3 +185,3 @@ else { | ||
let windowSize = await this._spec.getWindowSize(this.target); | ||
(_s = (_10 = this._driverInfo).displaySize) !== null && _s !== void 0 ? _s : (_10.displaySize = windowSize); | ||
(_s = (_11 = this._driverInfo).displaySize) !== null && _s !== void 0 ? _s : (_11.displaySize = windowSize); | ||
if (((_t = this.orientation) === null || _t === void 0 ? void 0 : _t.startsWith('landscape')) && | ||
@@ -223,6 +223,6 @@ this._driverInfo.displaySize.height > this._driverInfo.displaySize.width) { | ||
// bar sizes have to be scaled on android | ||
(_11 = this._driverInfo).statusBarSize && (_11.statusBarSize = this._driverInfo.statusBarSize / this.pixelRatio); | ||
(_12 = this._driverInfo).navigationBarSize && (_12.navigationBarSize = this._driverInfo.navigationBarSize / this.pixelRatio); | ||
(_12 = this._driverInfo).statusBarSize && (_12.statusBarSize = this._driverInfo.statusBarSize / this.pixelRatio); | ||
(_13 = this._driverInfo).navigationBarSize && (_13.navigationBarSize = this._driverInfo.navigationBarSize / this.pixelRatio); | ||
windowSize = utils.geometry.scale(windowSize, 1 / this.pixelRatio); | ||
(_13 = this._driverInfo).displaySize && (_13.displaySize = utils.geometry.scale(this._driverInfo.displaySize, 1 / this.pixelRatio)); | ||
(_14 = this._driverInfo).displaySize && (_14.displaySize = utils.geometry.scale(this._driverInfo.displaySize, 1 / this.pixelRatio)); | ||
} | ||
@@ -234,3 +234,3 @@ if (this.isIOS) { | ||
// calculate viewport location | ||
(_1 = (_14 = this._driverInfo).viewportLocation) !== null && _1 !== void 0 ? _1 : (_14.viewportLocation = { | ||
(_1 = (_15 = this._driverInfo).viewportLocation) !== null && _1 !== void 0 ? _1 : (_15.viewportLocation = { | ||
x: this.orientation === 'landscape' ? this.navigationBarSize : 0, | ||
@@ -266,5 +266,7 @@ y: this.statusBarSize, | ||
// init helper lib | ||
this._helper = this.isIOS | ||
? await helper_ios_1.HelperIOS.make({ spec: this._spec, driver: this, logger: this._logger }) | ||
: await helper_android_1.HelperAndroid.make({ spec: this._spec, driver: this, logger: this._logger }); | ||
if (!((_3 = this._customConfig) === null || _3 === void 0 ? void 0 : _3.disableHelper)) { | ||
this._helper = this.isIOS | ||
? await helper_ios_1.HelperIOS.make({ spec: this._spec, driver: this, logger: this._logger }) | ||
: await helper_android_1.HelperAndroid.make({ spec: this._spec, driver: this, logger: this._logger }); | ||
} | ||
} | ||
@@ -271,0 +273,0 @@ this._logger.log('Combined driver info', this._driverInfo); |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.9.22", | ||
"version": "1.9.23", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -83,3 +83,3 @@ "keywords": [ | ||
"@applitools/snippets": "2.4.5", | ||
"@applitools/types": "1.5.8", | ||
"@applitools/types": "1.5.9", | ||
"@applitools/utils": "1.3.10" | ||
@@ -86,0 +86,0 @@ }, |
216117
3397
+ Added@applitools/types@1.5.9(transitive)
- Removed@applitools/types@1.5.8(transitive)
Updated@applitools/types@1.5.9