testdriverai 5.7.6 → 5.7.7

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/agent.js CHANGED
@@ -225,7 +225,7 @@ const haveAIResolveError = async (
225
225
  undo = true,
226
226
  shouldSave,
227
227
  ) => {
228
-
228
+
229
229
  if (error.fatal) {
230
230
  return await dieOnFatal(error);
231
231
  }
package/lib/commands.js CHANGED
@@ -458,8 +458,8 @@ let commands = {
458
458
  // remove any modifier keys from the inputKeys array and put them in a new array
459
459
  inputKeys.forEach((key) => {
460
460
  // change command to control on windows
461
- if (key === "command" && platform() == "win32") {
462
- key = "control";
461
+ if (key === "command" || key === "control") {
462
+ key = commandOrControl;
463
463
  }
464
464
 
465
465
  if (!config.TD_VM && modifierKeys.includes(key)) {
@@ -38,13 +38,6 @@ end tell`;
38
38
  // set value of attribute "AXMinimized" of every window of application process "${windowName}" to true
39
39
  // end tell`;
40
40
 
41
- // const appleScriptActivate = (windowName) => `
42
- // tell application "${windowName}"
43
- // reopen
44
- // activate
45
- // end tell
46
- // `;
47
-
48
41
  const appleScriptActivate = (windowName) => `
49
42
  tell application "${windowName}"
50
43
  reopen
@@ -101,7 +94,7 @@ async function showTerminal(appName) {
101
94
  try {
102
95
  if (platform() == "mac") {
103
96
  await execSync(`osascript -e '${appleScriptActivate(appName)}'`, { stdio: [] });
104
- // await execSync(`osascript -e '${appleScriptSetFrontmost(appName)}'`, { stdio: [] });
97
+ await execSync(`osascript -e '${appleScriptSetFrontmost(appName)}'`, { stdio: [] });
105
98
 
106
99
  } else if (platform() == "windows") {
107
100
  return runPwsh(appName, "Restore");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.6",
3
+ "version": "5.7.7",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {