← Back to team overview

sikuli-driver team mailing list archive

[Question #250067]: Menus in the Mac OS Menu Bar as targets

 

New question #250067 on Sikuli:
https://answers.launchpad.net/sikuli/+question/250067

I want my script to click on my app's File menu in the Mac OS menu bar. However when I select the click([]) mouse action, that area of the menu bar reads "org.sikuli.ide.SikuliIDE" or such, hiding my app's name and File menu.

I drag to select the approximate area where I think the File menu will be, and I guess this works because it is taken as a region, not an exact find bitmap. So at run time the click does hit File and the menu opens.

However, after  the File menu opens, I want to say "find(image of the file menu)" but if I go back to Sikuli to click on find(), that switches away from the test app and the File menu closes again, so it is not there to be captured. Similarly it is not there any more if I want to use it as a click() target.

1. How do I get Sikuli to capture  the appearance of a menu such as File (the Edit menu will also be needed in a later script)
2. Having captured it and used it in a find() to verify it, and
3. How do I get a click target in it

Thanks for your time






-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.