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.
- package/lib/commands.js +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.
|
|
182
|
+
await robot.keyTap("pageup");
|
|
183
183
|
await redraw.wait(2000);
|
|
184
184
|
break;
|
|
185
185
|
case 'down':
|
|
186
|
-
await robot.
|
|
186
|
+
await robot.keyTap("pagedown");
|
|
187
187
|
await redraw.wait(2000);
|
|
188
188
|
break;
|
|
189
189
|
case 'left':
|