Class DataListOptions

  • All Implemented Interfaces:
    com.epam.jdi.light.asserts.generic.HasAssert<com.epam.jdi.light.asserts.complex.DropdownAssert>, com.epam.jdi.light.elements.complex.IHasSize, com.epam.jdi.light.elements.complex.ISelector, com.epam.jdi.light.elements.interfaces.base.HasCache, com.epam.jdi.light.elements.interfaces.base.HasInit, com.epam.jdi.light.elements.interfaces.base.HasLabel, 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.IsInput, com.epam.jdi.light.elements.interfaces.common.IsText, com.epam.jdi.light.elements.interfaces.complex.IsCombobox, com.epam.jdi.light.elements.interfaces.complex.IsDropdown, com.jdiai.tools.HasStartIndex

    public class DataListOptions
    extends com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
    implements com.epam.jdi.light.elements.interfaces.complex.IsCombobox, com.jdiai.tools.HasStartIndex
    Created by Roman Iovlev on 26.09.2019 Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int startIndex  
      • Fields inherited from class com.epam.jdi.light.elements.base.UIBaseElement

        thisParent
    • Constructor Summary

      Constructors 
      Constructor Description
      DataListOptions()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStartIndex()  
      String getText()  
      com.epam.jdi.light.asserts.complex.DropdownAssert is()  
      boolean isCollapsed()  
      boolean isDisplayed()  
      boolean isEnabled()  
      boolean isExpanded()  
      com.epam.jdi.light.elements.complex.WebList list()  
      List<String> listDisabled()
      Gets all disabled options
      List<String> listEnabled()
      Gets all enabled options
      void select​(int index)
      Selects the value based on its index
      void select​(String value)
      Selects the value
      void setStartIndex​(int index)  
      List<String> values()
      Gets all options
      • Methods inherited from class com.epam.jdi.light.elements.base.UIListBase

        first, get, get, getLocation, getSize, getValue, highlight, highlight, isDisabled, isEmpty, isNotEmpty, isNotVisible, isVisible, last, offCache, setValue, show
      • 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.HasLabel

        hasLabel, label, labelText
      • 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, 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.interfaces.complex.IsCombobox

        selected, selected
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.complex.IsDropdown

        value
      • Methods inherited from interface com.epam.jdi.light.elements.complex.ISelector

        attrs, getValue, isEmpty, isHidden, isNotEmpty, labels, select, select, select, select, selectByText, selected, setValue, size, values
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.common.IsInput

        clear, focus, input, sendKeys, setText
      • Methods inherited from interface com.epam.jdi.light.elements.interfaces.common.IsText

        getTextForce, text, text
    • Field Detail

      • startIndex

        protected int startIndex
    • Constructor Detail

      • DataListOptions

        public DataListOptions()
    • Method Detail

      • 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.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
      • getText

        public String getText()
        Specified by:
        getText in interface com.epam.jdi.light.elements.complex.ISelector
        Specified by:
        getText in interface com.epam.jdi.light.elements.interfaces.common.IsText
      • select

        public void select​(String value)
        Selects the value
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Parameters:
        value - String to select
      • select

        public void select​(int index)
        Selects the value based on its index
        Specified by:
        select in interface com.epam.jdi.light.elements.complex.ISelector
        Parameters:
        index - int to search
      • values

        public List<String> values()
        Gets all options
        Specified by:
        values in interface com.epam.jdi.light.elements.complex.ISelector
        Returns:
        List of the options
      • listEnabled

        public List<String> listEnabled()
        Gets all enabled options
        Specified by:
        listEnabled in interface com.epam.jdi.light.elements.complex.ISelector
        Returns:
        List of the options
      • listDisabled

        public List<String> listDisabled()
        Gets all disabled options
        Specified by:
        listDisabled in interface com.epam.jdi.light.elements.complex.ISelector
        Returns:
        List of the options
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface com.epam.jdi.light.elements.interfaces.base.ICoreElement
        Overrides:
        isEnabled in class com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
      • isDisplayed

        public boolean isDisplayed()
        Specified by:
        isDisplayed in interface com.epam.jdi.light.elements.interfaces.base.ICoreElement
        Specified by:
        isDisplayed in interface com.epam.jdi.light.elements.complex.ISelector
        Overrides:
        isDisplayed in class com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
      • isExpanded

        public boolean isExpanded()
        Specified by:
        isExpanded in interface com.epam.jdi.light.elements.interfaces.complex.IsDropdown
      • isCollapsed

        public boolean isCollapsed()
        Specified by:
        isCollapsed in interface com.epam.jdi.light.elements.interfaces.complex.IsDropdown
      • is

        public com.epam.jdi.light.asserts.complex.DropdownAssert is()
        Specified by:
        is in interface com.epam.jdi.light.asserts.generic.HasAssert<com.epam.jdi.light.asserts.complex.DropdownAssert>
        Overrides:
        is in class com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
      • getStartIndex

        public int getStartIndex()
        Specified by:
        getStartIndex in interface com.jdiai.tools.HasStartIndex
        Overrides:
        getStartIndex in class com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>
      • setStartIndex

        public void setStartIndex​(int index)
        Specified by:
        setStartIndex in interface com.jdiai.tools.HasStartIndex
        Overrides:
        setStartIndex in class com.epam.jdi.light.elements.base.UIListBase<com.epam.jdi.light.asserts.complex.DropdownAssert>