We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CheckBox – the element that allows user to make a binary choice, and thus, it may be put into one of the two states: checked or unchecked.
Example:
JDI provides the following methods, which enable interactions with checkboxes:
Here is the list of available methods.
Initialization:
@FindBy(xpath = "//checkbox xpath") public CheckBox checkBox;
Action > Examples:
@Test public void checkBoxActionExamples() { checkBox.check(); Assert.assertTrue(checkBox.isChecked())); checkBox.uncheck(); Assert.assertFalse(checkBox.isChecked())); if (!checkBox.isChecked()) checkBox.click(); }
See more examples on GitHub