testdriverai 4.0.21 → 4.0.22

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.
Files changed (2) hide show
  1. package/lib/commands.js +2 -2
  2. package/package.json +1 -1
package/lib/commands.js CHANGED
@@ -179,11 +179,11 @@ const scroll = async(direction = 'down', amount = 300) => {
179
179
 
180
180
  switch (direction) {
181
181
  case 'up':
182
- await robot.scrollMouse(0, amount);
182
+ await robot.keyTap("pageup");
183
183
  await redraw.wait(2000);
184
184
  break;
185
185
  case 'down':
186
- await robot.scrollMouse(0, amount * -1);
186
+ await robot.keyTap("pagedown");
187
187
  await redraw.wait(2000);
188
188
  break;
189
189
  case 'left':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {