Class SwingElementFinder


  • public class SwingElementFinder
    extends Object
    This class is based on BasicComponentFinder, the only difference is that we are not using LinkedHashSet for the founded components, but ArrayList and every time the component index is the same (in the component hierarchy tree), and we are able to search by index.
    • Constructor Detail

      • SwingElementFinder

        public SwingElementFinder()
    • Method Detail

      • find

        public static <T extends Component> T find​(org.fest.swing.core.Robot robot,
                                                   Container root,
                                                   org.fest.swing.core.GenericTypeMatcher<T> m)
      • find

        public static List<Component> find​(org.fest.swing.hierarchy.ComponentHierarchy hierarchy,
                                           Container root,
                                           org.fest.swing.core.GenericTypeMatcher<Component> m)
      • menuItemWithPath

        public static org.fest.swing.fixture.JMenuItemFixture menuItemWithPath​(org.fest.swing.core.Robot robot,
                                                                               Container root,
                                                                               String... path)