Daniel
Daniel

Reputation: 28074

How to find the location of a menuitem within a menu, in coordinates

In Java/SWT, is it possible to find the location of a menu item relative to its parent menu?

Upvotes: 0

Views: 166

Answers (1)

Saurabh Gokhale
Saurabh Gokhale

Reputation: 46395

You need to use MenuItemLocator.

E.g

ui.click(new MenuItemLocator("File/Save"));

Upvotes: 1

Related Questions