Class Menu2D

  • All Implemented Interfaces:
    com.epam.jdi.light.asserts.generic.HasAssert<com.epam.jdi.light.asserts.generic.UIMSelectAssert<?,​?>>, com.epam.jdi.light.elements.complex.IHasSize, com.epam.jdi.light.elements.complex.IMultiSelector, com.epam.jdi.light.elements.complex.ISelector, com.epam.jdi.light.elements.complex.ISetup, com.epam.jdi.light.elements.interfaces.base.HasCache, com.epam.jdi.light.elements.interfaces.base.HasInit, com.epam.jdi.light.elements.interfaces.base.HasPlaceholder, com.epam.jdi.light.elements.interfaces.base.HasUIList, com.epam.jdi.light.elements.interfaces.base.HasValue, com.epam.jdi.light.elements.interfaces.base.IBaseElement, com.epam.jdi.light.elements.interfaces.base.ICoreElement, com.epam.jdi.light.elements.interfaces.base.INamed, com.epam.jdi.light.elements.interfaces.base.JDIElement, com.epam.jdi.light.elements.interfaces.base.SetValue, com.epam.jdi.light.elements.interfaces.common.IsText, com.jdiai.tools.HasStartIndex

    public class Menu2D
    extends com.epam.jdi.light.elements.complex.Selector
    implements com.epam.jdi.light.elements.complex.ISetup
    Created by Roman Iovlev on 02.05.2020 Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean inheritLocators  
      protected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> lastAction  
      protected List<String> locators  
      protected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> pathAction  
      protected String printFormat  
      protected String printSeparator  
      protected String separator  
      • Fields inherited from class com.epam.jdi.light.elements.complex.Selector

        LABEL_LOCATOR, startIndex
      • Fields inherited from class com.epam.jdi.light.elements.base.UIBaseElement

        thisParent
    • Constructor Summary

      Constructors 
      Constructor Description
      Menu2D()  
      Menu2D​(String... locators)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<String> allValues()  
      com.epam.jdi.light.elements.common.UIElement get​(int index)  
      com.epam.jdi.light.elements.common.UIElement get​(int... indexes)  
      com.epam.jdi.light.elements.common.UIElement get​(String value)  
      com.epam.jdi.light.elements.common.UIElement get​(String... items)  
      protected com.epam.jdi.light.elements.common.UIElement getElementByLocator​(int[] indexes, Iterator<String> iterator)  
      protected com.epam.jdi.light.elements.common.UIElement getElementByLocator​(List<String> values, Iterator<String> iterator)  
      String getValue()  
      protected List<String> getValues​(Object parent, int index)  
      com.epam.jdi.light.elements.complex.WebList list()  
      protected void offInheritance()  
      protected void preOpen​(List<?> objs)  
      protected String printValues​(Object parent, int index)  
      void select​(int index)
      Selects particular element by index
      void select​(int... indexes)
      Selects particular element by index
      void select​(String value)
      Selects particular element by index
      void select​(String... items)
      Selects particular element by index
      String selected()  
      protected void setActions​(MenuBehaviour behaviour)  
      protected void setActions​(com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> pathAction, com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> lastAction)  
      protected void setPrint​(String printFormat, String printSeparator)  
      protected void setSeparator​(String separator)  
      void setup​(Field field)  
      protected String[] split​(String value)  
      List<String> values()  
      • Methods inherited from class com.epam.jdi.light.elements.complex.Selector

        asSelect, check, check, check, check, checked, getStartIndex, is, listDisabled, listEnabled, selected, setStartIndex, setValue, uncheck, uncheck, uncheck, unckeckAll, values
      • Methods inherited from class com.epam.jdi.light.elements.base.UIBaseElement

        base, core, init, linked, linkedList, toString
      • Methods inherited from interface com.epam.jdi.light.asserts.generic.HasAssert

        assertThat, has, shouldBe, verify, waitFor, waitFor
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.base.HasPlaceholder

        placeholder
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.base.IBaseElement

        base, getFullName, getName, isUseCache, offCache, setCore, setName, setTimeout, setup, waitSec
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.base.ICoreElement

        attr, attrs, children, classes, classLike, classLike, command, commands, core, css, doubleClick, dragAndDropTo, dragAndDropTo, find, find, find, finds, finds, finds, firstChild, getDirectionTo, getDirectionTo, getLocation, getSize, getTagName, hasAttribute, hasClass, highlight, highlight, hover, iCore, isAbove, isAbove, isBelow, isBelow, isDisabled, isEnabled, isExist, isNotExist, isNotVisible, isOnLeftOf, isOnLeftOf, isOnRightOf, isOnRightOf, isVisible, pasteText, pasteText, press, printHtml, pseudo, rightClick, setAttribute, should, shouldBe, show, visualValidation, visualValidation, waitFor, waitFor, with
      • Methods inherited from interface com.epam.jdi.light.elements.complex.ISelector

        attrs, getText, isDisplayed, isEmpty, isHidden, isNotEmpty, labels, select, select, selectByText, selected, size
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.common.IsText

        getTextForce, text, text
    • Field Detail

      • separator

        protected String separator
      • printFormat

        protected String printFormat
      • printSeparator

        protected String printSeparator
      • pathAction

        protected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> pathAction
      • lastAction

        protected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> lastAction
      • inheritLocators

        protected boolean inheritLocators
    • Constructor Detail

      • Menu2D

        public Menu2D()
      • Menu2D

        public Menu2D​(String... locators)
    • Method Detail

      • setSeparator

        protected void setSeparator​(String separator)
      • setPrint

        protected void setPrint​(String printFormat,
                                String printSeparator)
      • setActions

        protected void setActions​(com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> pathAction,
                                  com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement> lastAction)
      • setActions

        protected void setActions​(MenuBehaviour behaviour)
      • offInheritance

        protected void offInheritance()
      • get

        public com.epam.jdi.light.elements.common.UIElement get​(String value)
      • get

        public com.epam.jdi.light.elements.common.UIElement get​(String... items)
      • getElementByLocator

        protected com.epam.jdi.light.elements.common.UIElement getElementByLocator​(List<String> values,
                                                                                   Iterator<String> iterator)
      • select

        public void select​(String... items)
        Selects particular element by index
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Parameters:
        items - String var arg, elements with text to select
      • select

        public void select​(String value)
        Selects particular element by index
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Overrides:
        select in class com.epam.jdi.light.elements.complex.Selector
        Parameters:
        value - String var arg, elements with text to select
      • get

        public com.epam.jdi.light.elements.common.UIElement get​(int index)
      • get

        public com.epam.jdi.light.elements.common.UIElement get​(int... indexes)
      • getElementByLocator

        protected com.epam.jdi.light.elements.common.UIElement getElementByLocator​(int[] indexes,
                                                                                   Iterator<String> iterator)
      • select

        public void select​(int index)
        Selects particular element by index
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Overrides:
        select in class com.epam.jdi.light.elements.complex.Selector
        Parameters:
        index - int var arg, elements with text to select
      • select

        public void select​(int... indexes)
        Selects particular element by index
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Parameters:
        indexes - int var arg, elements with text to select
      • values

        public List<String> values()
        Specified by:
        values in interface com.epam.jdi.light.elements.complex.ISelector
        Overrides:
        values in class com.epam.jdi.light.elements.complex.Selector
      • getValue

        public String getValue()
        Specified by:
        getValue in interface com.epam.jdi.light.elements.interfaces.base.HasValue
        Specified by:
        getValue in interface com.epam.jdi.light.elements.complex.ISelector
        Specified by:
        getValue in interface com.epam.jdi.light.elements.interfaces.common.IsText
        Overrides:
        getValue in class com.epam.jdi.light.elements.complex.Selector
      • printValues

        protected String printValues​(Object parent,
                                     int index)
      • preOpen

        protected void preOpen​(List<?> objs)
      • selected

        public String selected()
        Specified by:
        selected in interface com.epam.jdi.light.elements.complex.ISelector
        Overrides:
        selected in class com.epam.jdi.light.elements.complex.Selector
      • setup

        public void setup​(Field field)
        Specified by:
        setup in interface com.epam.jdi.light.elements.complex.ISetup
      • list

        public com.epam.jdi.light.elements.complex.WebList list()
        Specified by:
        list in interface com.epam.jdi.light.elements.interfaces.base.HasUIList
        Overrides:
        list in class com.epam.jdi.light.elements.complex.Selector