Class NeoCheckBoxGroupField
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoCheckBoxGroupField
public class NeoCheckBoxGroupField extends NeoComponent
Represents an instance of the checkboxgroup field on the NEO UI
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
static org.openqa.selenium.By
selectAll
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoCheckBoxGroupField(NeoUIContext context, org.openqa.selenium.WebElement element)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
getValue()
Used to get the selected check boxes name if no check boxes were selected then it will return the empty list.void
select(java.lang.String... checkBoxNames)
Used to select required check box from group of check boxesvoid
selectAll()
Used to select all check box of same group in oncevoid
unSelect(java.lang.String... checkBoxNames)
Used to deselect required check box from group of check boxesvoid
unSelectAll()
Used to deselect all check box of same group in onceMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
selectAll
public static final org.openqa.selenium.By selectAll
-
-
Constructor Details
-
NeoCheckBoxGroupField
- Parameters:
context
-element
-
-
-
Method Details
-
selectAll
public void selectAll()Used to select all check box of same group in once -
unSelectAll
public void unSelectAll()Used to deselect all check box of same group in once -
select
public void select(java.lang.String... checkBoxNames)Used to select required check box from group of check boxes- Parameters:
Array
- of checkBoxNames
-
unSelect
public void unSelect(java.lang.String... checkBoxNames)Used to deselect required check box from group of check boxes- Parameters:
Array
- of checkBoxNames
-
getValue
public java.util.List<java.lang.String> getValue()Used to get the selected check boxes name if no check boxes were selected then it will return the empty list.- Returns:
- List
-