testdriverai 4.0.27 → 4.0.28

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/lib/commands.js CHANGED
@@ -41,7 +41,7 @@ const findImageOnScreen = async (relativePath, haystack, restrictToWindow) => {
41
41
  }
42
42
 
43
43
  // check if the file exists
44
- if (await !fs.existsSync(path.join(rootpath, relativePath))) {
44
+ if (await !fs.access(path.join(rootpath, relativePath))) {
45
45
  throw new AiError(`Image not found: ${relativePath}`)
46
46
  }
47
47
 
@@ -21,7 +21,7 @@ end tell
21
21
 
22
22
  const runPwsh = (appName, method) => {
23
23
  let script = `powershell -ExecutionPolicy Bypass -Command "& { ${scriptPath} '${appName}' '${method}' }"`;
24
- return execSync(script, { stdio: "inherit", shell: "powershell" });
24
+ return execSync(script, { shell: "powershell" });
25
25
  }
26
26
 
27
27
  async function focusApplication(appName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {