closeApp("firefox.app") is not working.what must i write in the field of app?

Asked by hayrettin ├ževik on 2010-02-02

i tried to open and close applications.for example i wrote closeApp("firefox.app") closeApp("Firefox.app") closeApp("firefox.exe)
closeApp("c:\program files\mozilla\firefox.app) closeApp("c:\program files\mozilla\firefox.exe) but anyone doesnt work.thanks for your help

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Phat W.
Solved:
2010-02-02
Last query:
2010-02-02
Last reply:
2010-02-02
Phat W. (cp-gphone) said : #1

Just like the command switchApp(app), when you are in a Windows the following applies: "On Windows, Sikuli searches in the text on the title bar instead of the application name."

You need to change your command to read: closeApp("Firefox") or closeApp("Mozilla Firefox").

nicolas (npawlaczyk) said : #2

Hi,

In the case of a website test, the text in the title bar may change, depending on the page where the script is.
Is there anyway to bypass this problem ?

Phat W. (cp-gphone) said : #3

Another way to bypass this problem is to have Sikuli open up Windows task manager, select the program from Process List OR Application list and end the program that way.

Best Phat W. (cp-gphone) said : #4

I forgot to mention you can also use the old Alt + F4 keys to close the current foreground program that is running.

hayrettin ├ževik (hayros) said : #5

Thanks Phatwilly, that solved my question.