CheckBox

public class CheckBox

High-level wrapper to define and interact with a checkbox input. High level API’s are not optimized. A definition of an element may interact with the browser to understand the structure of the DOM.

Constructors

CheckBox

public CheckBox(InBrowser browser, String labelText)

input of type “checkbox” with a label

Parameters:
  • labelText
    • the text in the label

CheckBox

public CheckBox(InBrowser browser, ElementProperty... props)

input of type “checkbox” with the given properties

Parameters:
  • props
    • properties of the checkbox

Methods

check

public void check()

Check it

isChecked

public boolean isChecked()

Is it checked?

Returns:whether it is checked

toString

public String toString()

uncheck

public void uncheck()

Unchecked it