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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.3.42](https://github.com/testdriverai/testdriverai/compare/v7.3.41...v7.3.42) (2026-02-25)
2
+
3
+
4
+
1
5
  ## [7.3.41](https://github.com/testdriverai/testdriverai/compare/v7.3.40...v7.3.41) (2026-02-25)
2
6
 
3
7
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.3.41",
3
+ "version": "7.3.42",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",
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.sandbox?.send) {
619
- await this.sdk.sandbox
620
- .send({
621
- type: "trackInteraction",
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.sandbox?.send) {
3177
- this.sandbox
3178
- .send({
3179
- type: "trackInteraction",
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.sandbox?.send) {
3233
- this.sandbox
3234
- .send({
3235
- type: "trackInteraction",
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.sandbox?.send) {
3278
- this.sandbox
3279
- .send({
3280
- type: "trackInteraction",
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