- Common ways to obtain CheckboxElement
private void myMethod () {CheckboxElement c =
CheckboxElement checkboxElement;checkboxElement.check()
CheckboxElement checkboxElement;checkboxElement.uncheck()
- Smart code suggestions by Codota
}
public boolean allCheckboxesForAppEnabled(final SupportedApplication application) { CheckboxElement masterCheckbox = table.find(By.id(application + "-masterCheckbox"), CheckboxElement.class); if (!masterCheckbox.isEnabled()) { return false; } List<CheckboxElement> checkboxes = table.findAll(By.className(application + "-checkbox"), CheckboxElement.class); for (CheckboxElement checkbox : checkboxes) { if (!checkbox.isEnabled()) { return false; } } return true; }
public boolean allCheckboxesForAppDisabled(final SupportedApplication application) { CheckboxElement masterCheckbox = table.find(By.id(application + "-masterCheckbox"), CheckboxElement.class); if (masterCheckbox.isEnabled()) { return false; } List<CheckboxElement> checkboxes = table.findAll(By.className(application + "-checkbox"), CheckboxElement.class); for (CheckboxElement checkbox : checkboxes) { if (checkbox.isEnabled()) { return false; } } return true; }