← Back to team overview

sikuli-driver team mailing list archive

[Bug 1486918] Re: Launch Chrome in Mac : execution error: Can’t get application "Chrome".

 

Sorry, but Google is not consistent here:
the name of the process is "Google Chrome", which is relevant for the App class, whereas in the menu it says "Chrome".

This is true also for other apps, so you have to find out the process
name (which usually is the name shown with the dock symbol).

BTW: mentioned in the docs:
http://sikulix-2014.readthedocs.org/en/latest/interaction.html#starting-and-stopping-other-apllications-and-bring-them-to-front

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1486918

Title:
  Launch Chrome in Mac : execution error: Can’t get application
  "Chrome".

Status in Sikuli:
  Invalid

Bug description:
  Error Log:

  [debug] RunTimeAPI: loadLib: libMacUtil.dylib
  [debug] Runner: AppleScript:
  #!/usr/bin/osascript
  tell app "Chrome" to activate
  returned:
  *****error*****
  /var/folders/qc/n91t7_111l5580skmd5yp2j4xkn478/T/Sikulix_1902161459/sikuli-859522232112186901.script:21:29: execution error: Can’t get application "Chrome". (-1728)

  [error] App.focus failed:  [-1:Chrome ()] Chrome
  [debug] Region: ( ⌘ )  TYPE "l"
  [debug] Region: ( ⌘ )  TYPE "l"
  [debug] Region:  TYPE "#ENTER."

  
  Code Used: 

  App ff = new App("chrome");
          ff.focus();
          screen.type("l", Key.CMD);
          screen.wait((double) 3.0);
          screen.type("l", Key.CMD);
          screen.paste(link);
          screen.type(Key.ENTER);

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1486918/+subscriptions


References