public class CheckBoxImpl extends ElementImpl implements CheckBox
| Constructor and Description |
|---|
CheckBoxImpl(UniqueElementLocator elementLocator)
Wraps a WebElement with checkbox functionality.
|
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Checks checkbox if unchecked.
|
boolean |
isChecked()
Check if an element is selected, and return boolean.
|
void |
toggle()
Toggle the state of the checkbox.
|
void |
uncheck()
Un-checks checkbox if checked.
|
clear, click, elementWired, findElement, findElements, getAttribute, getCoordinates, getCssValue, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWrappedElement, isDisplayed, isEnabled, isSelected, sendKeys, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelementWiredpublic CheckBoxImpl(UniqueElementLocator elementLocator)
elementLocator - the locator of the webelement.public void toggle()
CheckBoxpublic void check()
CheckBoxpublic void uncheck()
CheckBoxCopyright © 2017 PPI AG. All rights reserved.