public class CheckBox extends RadioButton
Constructor and Description |
---|
CheckBox(Page parentValue,
org.openqa.selenium.By locatorValue)
Default constructor which binds page the control belongs to and the locator to
find the element on page.
|
Modifier and Type | Method and Description |
---|---|
Editable |
setState(boolean checked)
Sets checked/unchecked state depending on input parameter.
|
Editable |
setValue(java.lang.String value)
Common method for setting values.
|
CheckBox |
uncheck()
Resets check mark from the field.
|
check
addSubItems, element, element, get, getDriver, getFormat, getItemLocatorText, getLocator, getLocatorText, getParent, getRect, getScrollDirection, getScrollTo, getText, getValue, is, isExcludeFromSearch, perform, scrollTo, setExcludeFromSearch, setFormat, setItemLocatorText, setScrollDirection, setScrollTo, verify, waitUntil
public CheckBox(Page parentValue, org.openqa.selenium.By locatorValue)
parentValue
- the instance of the page class containing current control.locatorValue
- the string used to locate current control.public CheckBox uncheck()
public Editable setState(boolean checked)
checked
- check state to achieve.public Editable setValue(java.lang.String value)
Editable
setValue
in class RadioButton
value
- the value to set.