public UserCreateUpdateDialog<P> fillEditDialog(String fullName, String password, Role role) { Fluent browser = page.getBrowser(); browser.fill(FULL_NAME_FIELD).with(fullName); browser.fill(PASSWORD_FIELD).with(password); webElement.find(ROLE_OPTION, withText(role.name())).click(); return this; }
public boolean isRoleFieldDisabled() { return webElement.find(ROLE_FIELD).getAttribute("disabled").equals("true"); }
public boolean isUserNameFieldDisabled() { return webElement.find(USER_NAME_FIELD).getAttribute("disabled").equals("true"); }