testdriverai 7.4.1 → 7.4.3
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/examples/hover-image.test.mjs +0 -11
- package/package.json +1 -1
- package/sdk.js +3 -3
|
@@ -13,20 +13,11 @@ import { getDefaults } from "./config.mjs";
|
|
|
13
13
|
* @param {string} username - Username (default: 'standard_user')
|
|
14
14
|
*/
|
|
15
15
|
async function performLogin(client, username = "standard_user") {
|
|
16
|
-
|
|
17
|
-
console.log('Performing login with username:', username);
|
|
18
16
|
await client.focusApplication("Google Chrome");
|
|
19
|
-
|
|
20
|
-
console.log('Extracting password from page');
|
|
21
17
|
const password = await client.extract("the password");
|
|
22
|
-
|
|
23
|
-
console.log('Password extracted:', password ? '***' : 'not found');
|
|
24
|
-
|
|
25
18
|
const usernameField = await client.find(
|
|
26
19
|
"username input",
|
|
27
20
|
);
|
|
28
|
-
|
|
29
|
-
console.log('Clicking on username field and entering credentials');
|
|
30
21
|
await usernameField.click();
|
|
31
22
|
await client.type(username);
|
|
32
23
|
await client.pressKeys(["tab"]);
|
|
@@ -44,8 +35,6 @@ describe("Hover Image Test", () => {
|
|
|
44
35
|
url: 'http://testdriver-sandbox.vercel.app/login'
|
|
45
36
|
});
|
|
46
37
|
|
|
47
|
-
console.log('starting login')
|
|
48
|
-
|
|
49
38
|
// Perform login first
|
|
50
39
|
await performLogin(testdriver);
|
|
51
40
|
|
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -668,7 +668,7 @@ class Element {
|
|
|
668
668
|
|
|
669
669
|
// Create options without timeout to avoid infinite recursion
|
|
670
670
|
const findOptions = typeof options === "object" ? { ...options } : {};
|
|
671
|
-
|
|
671
|
+
findOptions.timeout = 0;
|
|
672
672
|
|
|
673
673
|
let attempts = 0;
|
|
674
674
|
while (Date.now() - startTime < timeout) {
|
|
@@ -1899,7 +1899,7 @@ class TestDriverSDK {
|
|
|
1899
1899
|
// Add web log tracking with domain wildcard pattern, then start dashcam
|
|
1900
1900
|
if (this.dashcamEnabled) {
|
|
1901
1901
|
const domainPattern = this._getUrlDomainPattern(url);
|
|
1902
|
-
await this.dashcam.addWebLog(domainPattern, "Web Logs");
|
|
1902
|
+
// await this.dashcam.addWebLog(domainPattern, "Web Logs");
|
|
1903
1903
|
|
|
1904
1904
|
// Start dashcam recording after logs are configured
|
|
1905
1905
|
if (!(await this.dashcam.isRecording())) {
|
|
@@ -2466,7 +2466,7 @@ with zipfile.ZipFile(io.BytesIO(zip_data)) as zf:
|
|
|
2466
2466
|
const pattern = this._provisionedChromeUrl
|
|
2467
2467
|
? this._getUrlDomainPattern(this._provisionedChromeUrl)
|
|
2468
2468
|
: "**";
|
|
2469
|
-
await this.dashcam.addWebLog(pattern, "Web Logs");
|
|
2469
|
+
// await this.dashcam.addWebLog(pattern, "Web Logs");
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
2472
2472
|
// Start recording if not already recording
|