public class ECombobox extends EInput
Fields inherited from class | Fields |
---|---|
class BaseObject |
driver, element, loggerName, parent, value |
Constructor and description |
---|
ECombobox
(WebDriver driver, WebElement selElement) |
Type Params | Return Type | Name and description |
---|---|---|
|
public int |
countOptions() Count options of select |
|
public void |
getElementValue() |
|
public List<String> |
getListOptionText() get List Options Text of element |
|
public List<Integer> |
getSelectedOptionIndexes() |
|
public List<String> |
getSelectedOptionText() |
|
public Result |
isExist() Verify select box existence |
|
public Result |
isItemExist(String[] input) Verify existence of list of items |
|
public Result |
isItemSelected(String[] input) Check if specified items are selected |
|
public Result |
isListBox() Check if select box is list box |
|
public Result |
isNumberOfItemsEqual(int input) Verify number of items of select box |
|
public Result |
selectFirst() Select first item in select box |
|
public Result |
selectItem(String input) Select one item in select box |
|
public Result |
selectItems(String[] input) Multiple select items in select box |
|
public Result |
selectItemsByIndex(Integer[] input) Select items in select box by indexes |
|
public Result |
selectItemsByVisibleText(String[] input) |
|
public Result |
selectLast() Select first item in select box |
|
public Result |
selectRandom() Select random an item |
Methods inherited from class | Name |
---|---|
class EInput |
checkState, findParentElementRecursively, findWebElementById, getElementValue, isDisable, isEnable |
class BaseObject |
checkText, click, doubleClick, getAttribute, getCssValue, getDriver, getElement, getElementAttribute, getElementText, getLoggerName, getValue, getWindowsTitle, handleTimeoutLoading, isAttributeContainsValues, isExist, isValueContain, mouseMove, refreshWebElement, reportHappyCase, reportUnhappyCase, rightClick, setDriver, setElement, setLoggerName, verifyStringContains, verifyStringExact, waitForPageLoaded |
Count options of select
get List Options Text of element
Verify existence of list of items
string
- [] - expected itemsCheck if specified items are selected
string
- - expected itemsCheck if select box is list box
Verify number of items of select box
int
- - expected numberSelect first item in select box
Select one item in select box
string
- - itemMultiple select items in select box
string
- [] - itemsSelect items in select box by indexes
int[]
- - item indexesSelect first item in select box
Select random an item