Package de.bmiag.tapir.htmlbasic.impl
Class DefaultSeleniumCheckbox
- java.lang.Object
-
- de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
-
- de.bmiag.tapir.htmlbasic.impl.DefaultSeleniumCheckbox
-
- All Implemented Interfaces:
Checkbox
,SingleWebElementBased
,Clickable
,Deselectable
,Displayable
,Enabable
,Labeled
,Selectable
,TapirElement
@Component("tapirCheckbox") @Scope("prototype") public class DefaultSeleniumCheckbox extends AbstractSingleSeleniumElement implements Checkbox
Default Selenium implementation of aCheckbox
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description DefaultSeleniumCheckbox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
click()
Click this element.void
deselect()
Deselects the element.java.lang.String
getLabel()
The label is obtained from the title attribute or the value attribute (if title is not present).boolean
isDisplayed()
Returns true, if the element is displayed.boolean
isEnabled()
Returns true, if the element is enabled.boolean
isSelected()
Returns true, if the element is selected.void
select()
Selects the element.-
Methods inherited from class de.bmiag.tapir.selenium.element.AbstractSingleSeleniumElement
getWebElement, setWebElement
-
-
-
-
Method Detail
-
isSelected
public boolean isSelected()
Description copied from interface:Selectable
Returns true, if the element is selected.- Specified by:
isSelected
in interfaceSelectable
- Returns:
- true, if the element is selected.
-
click
public void click()
Description copied from interface:Clickable
Click this element.
-
isDisplayed
public boolean isDisplayed()
Description copied from interface:Displayable
Returns true, if the element is displayed. "Displayed" means it has to be part of the dom and it is not hidden using css.- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- true, if the element is displayed.
-
isEnabled
public boolean isEnabled()
Description copied from interface:Enabable
Returns true, if the element is enabled. "enabled" means it is not disabled and not readonly.
-
select
public void select()
Description copied from interface:Selectable
Selects the element. If the element is already selected, the call has no effect.- Specified by:
select
in interfaceSelectable
-
deselect
public void deselect()
Description copied from interface:Deselectable
Deselects the element. If the option is already unselected, the call has no effect.- Specified by:
deselect
in interfaceDeselectable
-
-