@Test(groups = "Enterprise-only") public void testgetTitle() throws Exception { UserSearchPage userPage = dashBoard.getNav().getUsersPage().render(); NewUserPage newPage = userPage.selectNewUser().render(); String userinfo = "user" + System.currentTimeMillis() + "@test.com"; newPage.createEnterpriseUserWithGroup(userinfo, userinfo, userinfo, userinfo, userinfo, groupName); GroupsPage page = dashBoard.getNav().getGroupsPage(); page = page.clickBrowse().render(); GroupsPage groupspage = page.selectGroup(groupName).render(); RemoveUserFromGroupPage removeUserFromGroupPage = groupspage.removeUser(userinfo).render(); Assert.assertEquals(removeUserFromGroupPage.getTitle(),"Remove User from Group"); }
public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[class='yui-module yui-overlay yui-panel']>div[id='prompt_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Not visible Element: Remove user from Goup", toe); } }
RemoveUserFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[class='yui-module yui-overlay yui-panel']>div[id='prompt_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Not visible Element: Remove user from Goup", toe); } } }
RemoveUserFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[class='yui-module yui-overlay yui-panel']>div[id='prompt_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Not visible Element: Remove user from Goup", toe); } } RemoveUserFromGroupPage(WebDrone drone); }
RemoveUserFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[class='yui-module yui-overlay yui-panel']>div[id='prompt_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Not visible Element: Remove user from Goup", toe); } } RemoveUserFromGroupPage(WebDrone drone); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(final long time); HtmlPage selectAction(Action action); String getTitle(); }
RemoveUserFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[class='yui-module yui-overlay yui-panel']>div[id='prompt_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Not visible Element: Remove user from Goup", toe); } } RemoveUserFromGroupPage(WebDrone drone); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(); @SuppressWarnings("unchecked") @Override RemoveUserFromGroupPage render(final long time); HtmlPage selectAction(Action action); String getTitle();  }