/** * @since 4.0.15 */ public boolean isOutgoing2LOiEnabled() { return outgoingTwoLoiEnableCheckBox.isSelected(); }
public boolean getEnabled() { return enabled.isSelected(); }
public boolean is2LOEnabled() { return twoLOEnabledCheckbox.isSelected(); }
public boolean is2LOImpersonationEnabled() { return twoLOImpersonationEnabledCheckbox.isSelected(); }
public boolean isOutgoing2LOEnabled() { return outgoingTwoLoEnableCheckBox.isSelected(); }
/** * Checks whether the user has access to the specified application. Only works in edit mode {@link #goEditMode()}. * * @param application application * @return true if the user has access to the specified application */ public boolean isGranted(final SupportedApplication application) { CheckboxElement checkbox = findCheckboxByApplication(application); return checkbox.isSelected(); }
/** * Revoke all users shown on the page to have access to the specified application, and expect a warning message * dialog pops up. Changes will not be applied until {@link #applyChanges()} is called. * It proceeds by unticking the master checkbox. * The master must be ticked before the call * * @param application application to grant to all users on the page * @return RevokeAccessWarningMessageDialog * @throws IllegalStateException if the master checkbox isn't ticked */ public RevokeAccessWarningMessageDialog revokeAllExpectingWarningMessage(final SupportedApplication application) { String checkboxName = String.format("%s-masterCheckbox", application.name()); CheckboxElement checkbox = table.find(By.id(checkboxName), CheckboxElement.class); if (!checkbox.isSelected()) { throw new IllegalStateException("The master checkbox must be ticked before calling revokeAll"); } checkbox.uncheck(); return pageBinder.bind(RevokeAccessWarningMessageDialog.class); }
public void verifySectionsUnchecked() { for (CheckboxElement checkbox : body.findAll(By.cssSelector("#support-zip-modal input[type=checkbox]"), CheckboxElement.class)) { assertFalse("Modal checkbox " + checkbox.getAttribute("name") + " was checked and should not be!", checkbox.isSelected()); } }
public void verifySectionsChecked() { for (CheckboxElement checkbox : body.findAll(By.cssSelector("#support-zip-modal input[type=checkbox]"), CheckboxElement.class)) { assertTrue("Modal checkbox " + checkbox.getAttribute("name") + " was not checked and should be!", checkbox.isSelected()); } }