testdriverai 7.2.29 → 7.2.31
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/README.md
CHANGED
|
@@ -49,7 +49,7 @@ expect(result).toBeTruthy();
|
|
|
49
49
|
|
|
50
50
|
### Step 1: Create a TestDriver Account
|
|
51
51
|
|
|
52
|
-
<a href="https://
|
|
52
|
+
<a href="https://console.testdriver.ai/team"><img src="https://img.shields.io/badge/Sign_Up-Free_Account-blue?style=for-the-badge" alt="Sign Up"/></a>
|
|
53
53
|
|
|
54
54
|
*No credit card required!*
|
|
55
55
|
|
package/agent/lib/commands.js
CHANGED
|
@@ -356,8 +356,9 @@ const createCommands = (
|
|
|
356
356
|
);
|
|
357
357
|
|
|
358
358
|
// Wait for redraw and track duration
|
|
359
|
+
// Increase timeout for scroll operations as they can take 1-2 seconds to complete
|
|
359
360
|
const redrawStartTime = Date.now();
|
|
360
|
-
await redraw.wait(
|
|
361
|
+
await redraw.wait(5000, redrawOptions);
|
|
361
362
|
const redrawDuration = Date.now() - redrawStartTime;
|
|
362
363
|
|
|
363
364
|
const after = await system.captureScreenBase64();
|
package/docs/docs.json
CHANGED
package/docs/v7/quickstart.mdx
CHANGED
|
@@ -22,7 +22,7 @@ TestDriver makes it easy to write automated computer-use tests for web browsers,
|
|
|
22
22
|
<Card
|
|
23
23
|
title="Sign Up for TestDriver"
|
|
24
24
|
icon="user-plus"
|
|
25
|
-
href="https://
|
|
25
|
+
href="https://console.testdriver.ai/team"
|
|
26
26
|
arrow
|
|
27
27
|
horizontal
|
|
28
28
|
>
|
|
@@ -67,11 +67,11 @@ TestDriver makes it easy to write automated computer-use tests for web browsers,
|
|
|
67
67
|
<Card
|
|
68
68
|
title="Sign Up for TestDriver"
|
|
69
69
|
icon="user-plus"
|
|
70
|
-
href="https://
|
|
70
|
+
href="https://console.testdriver.ai/team"
|
|
71
71
|
arrow
|
|
72
72
|
horizontal
|
|
73
73
|
>
|
|
74
|
-
|
|
74
|
+
Start with 60 free device minutes, no credit-card required!
|
|
75
75
|
</Card>
|
|
76
76
|
|
|
77
77
|
</Step>
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -35,7 +35,7 @@ describe("Scroll Test", () => {
|
|
|
35
35
|
await testdriver.scroll("down", { amount: 1000 });
|
|
36
36
|
|
|
37
37
|
// Assert page is scrolled
|
|
38
|
-
const result = await testdriver.assert("the page is scrolled down, the hamster dance heading is not visible on the
|
|
38
|
+
const result = await testdriver.assert("the page is scrolled down, the hamster dance h1 text heading is not visible on the webpage");
|
|
39
39
|
expect(result).toBeTruthy();
|
|
40
40
|
});
|
|
41
41
|
});
|