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, webelement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedClassNames
public AbstractCheckable(Component component) throws SeleniumPlusException
SeleniumPlusException
public void clearCache()
clearCache
in interface IOperable
public void check() throws SeleniumPlusException
CheckBox.Checkable
check
in interface CheckBox.Checkable
SeleniumPlusException
public void uncheck() throws SeleniumPlusException
CheckBox.Checkable
uncheck
in interface CheckBox.Checkable
SeleniumPlusException
public boolean isChecked() throws SeleniumPlusException
isChecked
in interface CheckBox.Checkable
SeleniumPlusException
protected void setChecked(boolean bChecked) throws SeleniumPlusException
nativeSetChecked(boolean)
to set it again.bChecked
- boolean the value to set for checkboxSeleniumPlusException
protected void nativeSetChecked(boolean bChecked) throws SeleniumPlusException
bChecked
- SeleniumPlusException
protected boolean isStatusOk(boolean bChecked) throws SeleniumPlusException
bChecked
- boolean, the 'expected status' of the checkbox.SeleniumPlusException
Copyright © SAS Institute. All Rights Reserved.