testdriverai 7.3.41 → 7.3.42
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/CHANGELOG.md +4 -0
- package/lib/core/Dashcam.js +5 -3
- package/package.json +1 -1
- package/sdk.js +16 -20
package/CHANGELOG.md
CHANGED
package/lib/core/Dashcam.js
CHANGED
|
@@ -108,6 +108,11 @@ class Dashcam {
|
|
|
108
108
|
*/
|
|
109
109
|
async _getDashcamPath() {
|
|
110
110
|
const shell = this._getShell();
|
|
111
|
+
|
|
112
|
+
if (this.client.os === "windows") {
|
|
113
|
+
return "C:\\Program Files\\nodejs\\dashcam.cmd";
|
|
114
|
+
}
|
|
115
|
+
|
|
111
116
|
const npmPrefix = await this.client.exec(
|
|
112
117
|
shell,
|
|
113
118
|
"npm prefix -g",
|
|
@@ -115,9 +120,6 @@ class Dashcam {
|
|
|
115
120
|
process.env.DEBUG == "true" ? false : true,
|
|
116
121
|
);
|
|
117
122
|
|
|
118
|
-
if (this.client.os === "windows") {
|
|
119
|
-
return "C:\\Program Files\\nodejs\\dashcam.cmd";
|
|
120
|
-
}
|
|
121
123
|
return npmPrefix.trim() + "/bin/dashcam";
|
|
122
124
|
}
|
|
123
125
|
|
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -615,11 +615,10 @@ class Element {
|
|
|
615
615
|
|
|
616
616
|
// Track find interaction once at the end (fire-and-forget, don't block)
|
|
617
617
|
const sessionId = this.sdk.getSessionId();
|
|
618
|
-
if (sessionId && this.sdk.
|
|
619
|
-
|
|
620
|
-
.
|
|
621
|
-
type: "
|
|
622
|
-
interactionType: "find",
|
|
618
|
+
if (sessionId && this.sdk.apiClient) {
|
|
619
|
+
this.sdk.apiClient
|
|
620
|
+
.req("interaction/track", {
|
|
621
|
+
type: "find",
|
|
623
622
|
session: sessionId,
|
|
624
623
|
prompt: description,
|
|
625
624
|
timestamp: absoluteTimestamp, // Absolute epoch timestamp - frontend calculates relative using clientStartDate
|
|
@@ -3173,11 +3172,10 @@ CAPTCHA_SOLVER_EOF`,
|
|
|
3173
3172
|
|
|
3174
3173
|
// Track successful findAll interaction (fire-and-forget, don't block)
|
|
3175
3174
|
const sessionId = this.getSessionId();
|
|
3176
|
-
if (sessionId && this.
|
|
3177
|
-
this.
|
|
3178
|
-
.
|
|
3179
|
-
type: "
|
|
3180
|
-
interactionType: "findAll",
|
|
3175
|
+
if (sessionId && this.apiClient) {
|
|
3176
|
+
this.apiClient
|
|
3177
|
+
.req("interaction/track", {
|
|
3178
|
+
type: "findAll",
|
|
3181
3179
|
session: sessionId,
|
|
3182
3180
|
prompt: description,
|
|
3183
3181
|
timestamp: absoluteTimestamp, // Absolute epoch timestamp - frontend calculates relative using clientStartDate
|
|
@@ -3229,11 +3227,10 @@ CAPTCHA_SOLVER_EOF`,
|
|
|
3229
3227
|
|
|
3230
3228
|
// No elements found - track interaction (fire-and-forget, don't block)
|
|
3231
3229
|
const sessionId = this.getSessionId();
|
|
3232
|
-
if (sessionId && this.
|
|
3233
|
-
this.
|
|
3234
|
-
.
|
|
3235
|
-
type: "
|
|
3236
|
-
interactionType: "findAll",
|
|
3230
|
+
if (sessionId && this.apiClient) {
|
|
3231
|
+
this.apiClient
|
|
3232
|
+
.req("interaction/track", {
|
|
3233
|
+
type: "findAll",
|
|
3237
3234
|
session: sessionId,
|
|
3238
3235
|
prompt: description,
|
|
3239
3236
|
timestamp: absoluteTimestamp, // Absolute epoch timestamp - frontend calculates relative using clientStartDate
|
|
@@ -3274,11 +3271,10 @@ CAPTCHA_SOLVER_EOF`,
|
|
|
3274
3271
|
|
|
3275
3272
|
// Track findAll error interaction (fire-and-forget, don't block)
|
|
3276
3273
|
const sessionId = this.getSessionId();
|
|
3277
|
-
if (sessionId && this.
|
|
3278
|
-
this.
|
|
3279
|
-
.
|
|
3280
|
-
type: "
|
|
3281
|
-
interactionType: "findAll",
|
|
3274
|
+
if (sessionId && this.apiClient) {
|
|
3275
|
+
this.apiClient
|
|
3276
|
+
.req("interaction/track", {
|
|
3277
|
+
type: "findAll",
|
|
3282
3278
|
session: sessionId,
|
|
3283
3279
|
prompt: description,
|
|
3284
3280
|
timestamp: absoluteTimestamp, // Absolute epoch timestamp - frontend calculates relative using clientStartDate
|