Class Checkbox

java.lang.Object
net.thucydides.core.webelements.Checkbox

public class Checkbox
extends java.lang.Object
A checkbox web element. Simplified handling checkboxes by providing a setChecked() method that will ensure the the checkbox state will finish with the requested value, and which uses clicking as a user would do.
  • Constructor Summary

    Constructors
    Constructor Description
    Checkbox​(org.openqa.selenium.WebElement checkboxField)  
  • Method Summary

    Modifier and Type Method Description
    boolean isChecked()  
    void setChecked​(boolean value)  

    Methods inherited from class java.lang.Object

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

    • Checkbox

      public Checkbox​(org.openqa.selenium.WebElement checkboxField)
  • Method Details

    • setChecked

      public void setChecked​(boolean value)
    • isChecked

      public boolean isChecked()