use of org.fest.swing.core.ComponentMatcher in project ats-framework by Axway.
the class SwingElementFinder method menuItemWithPath.
public static JMenuItemFixture menuItemWithPath(Robot robot, Container root, String... path) {
ComponentMatcher m = new JMenuItemMatcher(path);
Component item = robot.finder().find(root, m);
assertThat(item).as(format(item)).isInstanceOf(JMenuItem.class);
return new JMenuItemFixture(robot, (JMenuItem) item);
}
Aggregations