Class StringEnumerationField
java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.TextField
com.onenetwork.platform.tools.test.ui.components.StringEnumerationField
public class StringEnumerationField extends TextField
Represents an instance of
One.form.EnumComboBox.
-
Field Summary
Fields Modifier and Type Field Description protected org.openqa.selenium.WebElement
textFieldEl
protected org.openqa.selenium.WebElement
triggerEl
-
Constructor Summary
Constructors Constructor Description StringEnumerationField(UIContext context, org.openqa.selenium.WebElement formItemEl)
-
Method Summary
Modifier and Type Method Description java.util.List<org.openqa.selenium.WebElement>
getDropDownList()
boolean
isEnabled()
This method verify Text Field element is enabledvoid
select(java.lang.String val)
This method is likely redundant, as it does the same thingsetValue(String)
does with the exception of entering the value beforehand - it opens the combo list by clicking on the trigger button.void
setValue(java.lang.String val)
Sets the value on the string enumeration field by entering it in the input, waiting until the combo list opens and selects an item, and then clicks that item.Methods inherited from class com.onenetwork.platform.tools.test.ui.components.TextField
callSetValue, clear, getId, getInputEl, getValue, isUsingNativeClick, setUseNativeClick, typeValue
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, isDisplayed, isRequired
-
Field Details
-
triggerEl
protected org.openqa.selenium.WebElement triggerEl -
textFieldEl
protected org.openqa.selenium.WebElement textFieldEl
-
-
Constructor Details
-
Method Details
-
setValue
public void setValue(java.lang.String val)Sets the value on the string enumeration field by entering it in the input, waiting until the combo list opens and selects an item, and then clicks that item. -
select
public void select(java.lang.String val)This method is likely redundant, as it does the same thingsetValue(String)
does with the exception of entering the value beforehand - it opens the combo list by clicking on the trigger button.- Parameters:
val
-
-
getDropDownList
public java.util.List<org.openqa.selenium.WebElement> getDropDownList() -
isEnabled
public boolean isEnabled()This method verify Text Field element is enabled- Returns:
- boolean - true - If element is enable / false- If element is disable
-