Capturing an element in the Menu Bar

Asked by Jonathan on 2010-02-02

I'm using Sikuli under Mac OS X.

At some point in my script I need to capture an item in the Menu Bar for a specific application --
     I want to click on the term "File" for the Disk Utility application, so I can then select "New" and then "Disk Image From Folder"

but when I attempt to do a "capture" the Sikuli IDE is in the Menu Bar.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Solved by:
Sergey Darovskih
Last query:
Last reply:
Best Sergey Darovskih (darovskih) said : #1

at least you can screenshot by yourself and then use "insert an image" button in Sikuli IDE

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

The way to achieve this is to change the screen shot shortcut for Sikuli to a combination that would not cause other menus to open up or switch applications. Also, it helps to click and hold open the menu you would like to screen shot then use your shortcut key combination.

I do not have a Mac that will allow me to give you a exact answer but hopefully this helps.

Jonathan (jonathan-boppazu) said : #3

Thanks Sergey Darovskih, that solved my question.