testdriverai 7.9.71-test → 7.9.72-test

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sdk.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.9.71-test",
3
+ "version": "7.9.72-test",
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
@@ -1509,6 +1509,10 @@ class TestDriverSDK {
1509
1509
  this.reconnect =
1510
1510
  options.reconnect !== undefined ? options.reconnect : false;
1511
1511
 
1512
+ // Store keepAlive preference from options
1513
+ this.keepAlive =
1514
+ options.keepAlive !== undefined ? options.keepAlive : undefined;
1515
+
1512
1516
  // Store dashcam preference (default: true)
1513
1517
  this.dashcamEnabled = options.dashcam !== false;
1514
1518
 
@@ -2830,9 +2834,11 @@ CAPTCHA_SOLVER_EOF`,
2830
2834
  } else {
2831
2835
  this.agent.sandboxOs = this.os;
2832
2836
  }
2833
- // Use keepAlive from connectOptions if provided
2837
+ // Use keepAlive from connectOptions if provided, otherwise fall back to constructor option
2834
2838
  if (connectOptions.keepAlive !== undefined) {
2835
2839
  this.agent.keepAlive = connectOptions.keepAlive;
2840
+ } else if (this.keepAlive !== undefined) {
2841
+ this.agent.keepAlive = this.keepAlive;
2836
2842
  }
2837
2843
 
2838
2844
  // Set redrawThreshold on agent's cliArgs.options