Class Menu2D
- java.lang.Object
-
- com.epam.jdi.light.elements.base.UIBaseElement<com.epam.jdi.light.asserts.generic.UIMSelectAssert<?,?>>
-
- com.epam.jdi.light.elements.complex.Selector
-
- com.epam.jdi.light.ui.html.elements.complex.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.ISetupCreated 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 booleaninheritLocatorsprotected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement>lastActionprotected List<String>locatorsprotected com.jdiai.tools.func.JAction1<com.epam.jdi.light.elements.common.UIElement>pathActionprotected StringprintFormatprotected StringprintSeparatorprotected Stringseparator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>allValues()com.epam.jdi.light.elements.common.UIElementget(int index)com.epam.jdi.light.elements.common.UIElementget(int... indexes)com.epam.jdi.light.elements.common.UIElementget(String value)com.epam.jdi.light.elements.common.UIElementget(String... items)protected com.epam.jdi.light.elements.common.UIElementgetElementByLocator(int[] indexes, Iterator<String> iterator)protected com.epam.jdi.light.elements.common.UIElementgetElementByLocator(List<String> values, Iterator<String> iterator)StringgetValue()protected List<String>getValues(Object parent, int index)com.epam.jdi.light.elements.complex.WebListlist()protected voidoffInheritance()protected voidpreOpen(List<?> objs)protected StringprintValues(Object parent, int index)voidselect(int index)Selects particular element by indexvoidselect(int... indexes)Selects particular element by indexvoidselect(String value)Selects particular element by indexvoidselect(String... items)Selects particular element by indexStringselected()protected voidsetActions(MenuBehaviour behaviour)protected voidsetActions(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 voidsetPrint(String printFormat, String printSeparator)protected voidsetSeparator(String separator)voidsetup(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
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)
-
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:
selectin interfacecom.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:
selectin interfacecom.epam.jdi.light.elements.complex.ISelector- Overrides:
selectin classcom.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:
selectin interfacecom.epam.jdi.light.elements.complex.ISelector- Overrides:
selectin classcom.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:
selectin interfacecom.epam.jdi.light.elements.complex.ISelector- Parameters:
indexes- int var arg, elements with text to select
-
values
public List<String> values()
- Specified by:
valuesin interfacecom.epam.jdi.light.elements.complex.ISelector- Overrides:
valuesin classcom.epam.jdi.light.elements.complex.Selector
-
getValue
public String getValue()
- Specified by:
getValuein interfacecom.epam.jdi.light.elements.interfaces.base.HasValue- Specified by:
getValuein interfacecom.epam.jdi.light.elements.complex.ISelector- Specified by:
getValuein interfacecom.epam.jdi.light.elements.interfaces.common.IsText- Overrides:
getValuein classcom.epam.jdi.light.elements.complex.Selector
-
preOpen
protected void preOpen(List<?> objs)
-
selected
public String selected()
- Specified by:
selectedin interfacecom.epam.jdi.light.elements.complex.ISelector- Overrides:
selectedin classcom.epam.jdi.light.elements.complex.Selector
-
setup
public void setup(Field field)
- Specified by:
setupin interfacecom.epam.jdi.light.elements.complex.ISetup
-
list
public com.epam.jdi.light.elements.complex.WebList list()
- Specified by:
listin interfacecom.epam.jdi.light.elements.interfaces.base.HasUIList- Overrides:
listin classcom.epam.jdi.light.elements.complex.Selector
-
-