Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/driver

Package Overview
Dependencies
Maintainers
24
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/driver - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

5

CHANGELOG.md

@@ -6,2 +6,7 @@ # Change Log

## 1.4.4 - 2021/12/20
- improve native android app scrolling performance
- fix bug with `Buffer.from` and base64
## 1.4.3 - 2021/12/17

@@ -8,0 +13,0 @@

2

dist/driver.js

@@ -395,3 +395,3 @@ "use strict";

if (utils.types.isString(image)) {
return Buffer.from(image.replace(/[\r\n]+/g, ''));
return Buffer.from(image.replace(/[\r\n]+/g, ''), 'base64');
}

@@ -398,0 +398,0 @@ return image;

@@ -292,2 +292,3 @@ "use strict";

}
const actions = [];
const touchPadding = await this.getTouchPadding();

@@ -303,3 +304,3 @@ const xPadding = Math.max(Math.floor(effectiveRegion.width * 0.1), touchPadding);

const [xStart, xEnd] = xDirection === 'right' ? [xRight, xLeft] : [xLeft, xRight];
await this._spec.performAction(this.driver.target, [
actions.push([
{ action: 'press', y: yTrack, x: xStart },

@@ -325,3 +326,3 @@ { action: 'wait', ms: 100 },

const [yStart, yEnd] = yDirection === 'down' ? [yBottom, yTop] : [yTop, yBottom];
await this._spec.performAction(this.driver.target, [
actions.push([
{ action: 'press', x: xTrack, y: yStart },

@@ -338,2 +339,11 @@ { action: 'wait', ms: 100 },

}
// ios actions should be executed one-by-one sequentially, otherwise the result isn't stable
if (this.driver.isIOS) {
for (const action of actions) {
await this._spec.performAction(this.driver.target, action);
}
}
else {
await this._spec.performAction(this.driver.target, [].concat(...actions));
}
const actualScrollableRegion = await this.getClientRegion();

@@ -340,0 +350,0 @@ this._state.scrollOffset = utils.geometry.offsetNegative(requiredOffset, {

{
"name": "@applitools/driver",
"version": "1.4.3",
"version": "1.4.4",
"description": "Applitools universal framework wrapper",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc