protected abstract static class CheckBox.AbstractCheckable extends EmbeddedObject implements CheckBox.Checkable
parent| Constructor and Description |
|---|
AbstractCheckable(Component component) |
| Modifier and Type | Method and Description |
|---|---|
void |
check()
Try to check the checkbox, and then verify if the checkbox
has been really checked.
|
void |
clearCache() |
boolean |
isChecked() |
protected boolean |
isStatusOk(boolean bChecked)
Check if the checkbox's status is the same as the 'expected status'.
|
protected void |
nativeSetChecked(boolean bChecked)
Call the native method provide by special checkbox to check/incheck.
Note: There are some callback methods associated with the checkbox, but setting property 'checked' may NOT invoke them, in the implementation of this method we should make sure those callbacks invoked (we can fire some events.) |
protected void |
setChecked(boolean bChecked)
Set the value of property 'checked' for checkbox.
Here we will just call click to check/uncheck, if it doesn't work, then we will call nativeSetChecked(boolean) to set it again. |
void |
uncheck()
Try to uncheck the checkbox, and then verify if the checkbox
has been really unchecked.
|
isShowOnPage, isSupported, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedClassNamespublic AbstractCheckable(Component component) throws SeleniumPlusException
SeleniumPlusExceptionpublic void clearCache()
clearCache in interface IOperablepublic void check()
throws SeleniumPlusException
CheckBox.Checkablecheck in interface CheckBox.CheckableSeleniumPlusExceptionpublic void uncheck()
throws SeleniumPlusException
CheckBox.Checkableuncheck in interface CheckBox.CheckableSeleniumPlusExceptionpublic boolean isChecked()
throws SeleniumPlusException
isChecked in interface CheckBox.CheckableSeleniumPlusExceptionprotected void setChecked(boolean bChecked)
throws SeleniumPlusException
nativeSetChecked(boolean) to set it again.bChecked - boolean the value to set for checkboxSeleniumPlusExceptionprotected void nativeSetChecked(boolean bChecked)
throws SeleniumPlusException
bChecked - SeleniumPlusExceptionprotected boolean isStatusOk(boolean bChecked)
throws SeleniumPlusException
bChecked - boolean, the 'expected status' of the checkbox.SeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.