Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSeleniumCheckbox

        public DefaultSeleniumCheckbox()
    • Method Detail

      • isSelected

        public boolean isSelected()
        Description copied from interface: Selectable
        Returns true, if the element is selected.
        Specified by:
        isSelected in interface Selectable
        Returns:
        true, if the element is selected.
      • click

        public void click()
        Description copied from interface: Clickable
        Click this element.
        Specified by:
        click in interface Clickable
      • 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 interface Displayable
        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.
        Specified by:
        isEnabled in interface Enabable
        Returns:
        true, if the element is enabled.
      • 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 interface Selectable
      • 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 interface Deselectable
      • getLabel

        public java.lang.String getLabel()
        The label is obtained from the title attribute or the value attribute (if title is not present). Subclasses my override this behaviour.
        Specified by:
        getLabel in interface Labeled
        Returns:
        the label
        Since:
        2.0.0