Class CheckBox
- java.lang.Object
-
- com.github.loyada.jdollarx.highlevelapi.CheckBox
-
public class CheckBox extends Object
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.
-
-
Constructor Summary
Constructors Constructor Description CheckBox(InBrowser browser, ElementProperty... props)
input of type "checkbox" with the given propertiesCheckBox(InBrowser browser, Path inputEl, String name)
input of type "checkbox"CheckBox(InBrowser browser, String labelText)
input of type "checkbox" with a label element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check()
Check itPath
getCheckbox()
boolean
isChecked()
Is it checked?String
toString()
void
uncheck()
Unchecked it
-
-
-
Constructor Detail
-
CheckBox
public CheckBox(InBrowser browser, String labelText)
input of type "checkbox" with a label element- Parameters:
labelText
- - the text in the label
-
CheckBox
public CheckBox(InBrowser browser, Path inputEl, String name)
input of type "checkbox"- Parameters:
inputEl
- - the input element which is the checkboxname
- - An optional name for the checkbox. .
-
CheckBox
public CheckBox(InBrowser browser, ElementProperty... props)
input of type "checkbox" with the given properties- Parameters:
props
- - properties of the checkbox
-
-