@Test(dependsOnMethods = "testNavigateToGroupsInvitePage", groups = "Enterprise-only") public void testSendExtInvite() { membersPage.invExternalUser("Gogi", "Gruzinidze", "gogi@vaikrasava.com", UserRole.CONSUMER); }
public void invExternalUser(String firstName, String lastName, String email, UserRole userRole) { fillField(EXTERNAL_FIRST_NAME_INPUT, firstName); fillField(EXTERNAL_LAST_NAME_INPUT, lastName); fillField(EXTERNAL_EMAIL_INPUT, email); click(EXTERNAL_ADD_BUTTON); selectRoleForAll(userRole); clickInviteButton(); }
InviteMembersPage extends SharePage { public void invExternalUser(String firstName, String lastName, String email, UserRole userRole) { fillField(EXTERNAL_FIRST_NAME_INPUT, firstName); fillField(EXTERNAL_LAST_NAME_INPUT, lastName); fillField(EXTERNAL_EMAIL_INPUT, email); click(EXTERNAL_ADD_BUTTON); selectRoleForAll(userRole); clickInviteButton(); } }
InviteMembersPage extends SharePage { public void invExternalUser(String firstName, String lastName, String email, UserRole userRole) { fillField(EXTERNAL_FIRST_NAME_INPUT, firstName); fillField(EXTERNAL_LAST_NAME_INPUT, lastName); fillField(EXTERNAL_EMAIL_INPUT, email); click(EXTERNAL_ADD_BUTTON); selectRoleForAll(userRole); clickInviteButton(); } InviteMembersPage(WebDrone drone); }
InviteMembersPage extends SharePage { public void invExternalUser(String firstName, String lastName, String email, UserRole userRole) { fillField(EXTERNAL_FIRST_NAME_INPUT, firstName); fillField(EXTERNAL_LAST_NAME_INPUT, lastName); fillField(EXTERNAL_EMAIL_INPUT, email); click(EXTERNAL_ADD_BUTTON); selectRoleForAll(userRole); clickInviteButton(); } InviteMembersPage(WebDrone drone); @SuppressWarnings("unchecked") @Override InviteMembersPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override InviteMembersPage render(); @SuppressWarnings("unchecked") @Override InviteMembersPage render(final long time); InviteMembersPage renderWithUserSearchResults(final long time); InviteMembersPage renderWithUserSearchResults(); InviteMembersPage renderWithUserSearchResults(RenderTime timer); boolean titlePresent(); List<String> searchUser(String userName); InviteMembersPage clickAddUser(String user); InviteMembersPage selectInviteeAndAssignRole(String user, UserRole role); InviteMembersPage clickInviteButton(); InviteMembersPage selectRole(String user, UserRole role); SiteGroupsPage navigateToSiteGroupsPage(); void removeUserFromInvite(String userName); void selectRoleForAll(UserRole role); boolean isAddButtonEnabledFor(String userName); boolean isInviteButtonEnabled(); boolean isSelectRoleEnabledFor(String userName); boolean isRemoveIconEnabledFor(String userName); SiteMembersPage navigateToMembersSitePage(); PendingInvitesPage navigateToPendingInvitesPage(); void invExternalUser(String firstName, String lastName, String email, UserRole userRole); }
InviteMembersPage extends SharePage { public void invExternalUser(String firstName, String lastName, String email, UserRole userRole) { fillField(EXTERNAL_FIRST_NAME_INPUT, firstName); fillField(EXTERNAL_LAST_NAME_INPUT, lastName); fillField(EXTERNAL_EMAIL_INPUT, email); click(EXTERNAL_ADD_BUTTON); selectRoleForAll(userRole); clickInviteButton(); } InviteMembersPage(WebDrone drone); @SuppressWarnings("unchecked") @Override InviteMembersPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override InviteMembersPage render(); @SuppressWarnings("unchecked") @Override InviteMembersPage render(final long time); InviteMembersPage renderWithUserSearchResults(final long time); InviteMembersPage renderWithUserSearchResults(); InviteMembersPage renderWithUserSearchResults(RenderTime timer); boolean titlePresent(); List<String> searchUser(String userName); InviteMembersPage clickAddUser(String user); InviteMembersPage selectInviteeAndAssignRole(String user, UserRole role); InviteMembersPage clickInviteButton(); InviteMembersPage selectRole(String user, UserRole role); SiteGroupsPage navigateToSiteGroupsPage(); void removeUserFromInvite(String userName); void selectRoleForAll(UserRole role); boolean isAddButtonEnabledFor(String userName); boolean isInviteButtonEnabled(); boolean isSelectRoleEnabledFor(String userName); boolean isRemoveIconEnabledFor(String userName); SiteMembersPage navigateToMembersSitePage(); PendingInvitesPage navigateToPendingInvitesPage(); void invExternalUser(String firstName, String lastName, String email, UserRole userRole);  }