testdriverai 4.0.52 → 4.0.54

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/index.js CHANGED
@@ -230,7 +230,7 @@ const haveAIResolveError = async (error, markdown, depth = 0, undo = false) => {
230
230
 
231
231
  let image;
232
232
  if (error.attachScreenshot) {
233
- image = await system.captureScreenBase64(0.5);
233
+ image = await system.captureScreenBase64();
234
234
  } else {
235
235
  image = null;
236
236
  }
@@ -267,7 +267,7 @@ const check = async () => {
267
267
 
268
268
  console.log("");
269
269
  log.log("info", chalk.dim("checking..."), "testdriver");
270
- let image = await system.captureScreenBase64(0.5);
270
+ let image = await system.captureScreenBase64();
271
271
  let mousePosition = await system.getMousePosition();
272
272
  let activeWindow = await system.activeWin();
273
273
 
@@ -447,7 +447,7 @@ const humanInput = async (currentTask, validateAndLoop = false) => {
447
447
 
448
448
  log.log("info", "");
449
449
 
450
- let image = await system.captureScreenBase64(0.5);
450
+ let image = await system.captureScreenBase64();
451
451
  let message = await sdk.req("input", {
452
452
  input: currentTask,
453
453
  mousePosition: await system.getMousePosition(),
@@ -473,7 +473,7 @@ const generate = async (type) => {
473
473
 
474
474
  log.log("info", "");
475
475
 
476
- let image = await system.captureScreenBase64(0.5);
476
+ let image = await system.captureScreenBase64();
477
477
  let message = await sdk.req("generate", {
478
478
  type,
479
479
  image,
@@ -719,7 +719,7 @@ let summarize = async (error = null) => {
719
719
  log.log("info", chalk.dim("reviewing test..."), true);
720
720
 
721
721
  // let text = prompts.summarize(tasks, error);
722
- let image = await system.captureScreenBase64(0.5);
722
+ let image = await system.captureScreenBase64();
723
723
 
724
724
  log.log("info", chalk.dim("summarizing..."), true);
725
725
 
package/lib/commands.js CHANGED
@@ -145,7 +145,7 @@ const assert = async (assertion, shouldThrow = false, async = false) => {
145
145
  await sdk
146
146
  .req("assert", {
147
147
  expect: assertion,
148
- image: await captureScreenBase64(0.5),
148
+ image: await captureScreenBase64(),
149
149
  })
150
150
  .then((response) => {
151
151
  return handleAssertResponse(response);
@@ -155,7 +155,7 @@ const assert = async (assertion, shouldThrow = false, async = false) => {
155
155
  } else {
156
156
  let response = await sdk.req("assert", {
157
157
  expect: assertion,
158
- image: await captureScreenBase64(0.5),
158
+ image: await captureScreenBase64(),
159
159
  });
160
160
  return handleAssertResponse(response);
161
161
  }
@@ -399,7 +399,7 @@ let commands = {
399
399
  while (durationPassed < timeout && !passed) {
400
400
  passed = await sdk.req("assert", {
401
401
  needle: description,
402
- image: await captureScreenBase64(0.5),
402
+ image: await captureScreenBase64(),
403
403
  });
404
404
 
405
405
  durationPassed = new Date().getTime() - startTime;
@@ -545,7 +545,7 @@ let commands = {
545
545
  while (scrollDistance < maxDistance && !passed) {
546
546
  passed = await sdk.req("assert", {
547
547
  needle: `An image matching the description "${description}" appears on screen.`,
548
- image: await captureScreenBase64(0.5),
548
+ image: await captureScreenBase64(),
549
549
  });
550
550
 
551
551
  if (!passed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.52",
3
+ "version": "4.0.54",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {