@Test(groups = "Enterprise-only") public void testGetTitle() throws Exception { GroupsPage groupsPage = dashBoard.getNav().getGroupsPage(); groupsPage = groupsPage.clickBrowse().render(); NewGroupPage newGroupPage = groupsPage.navigateToNewGroupPage().render(); newGroupPage.createGroup(groupName, groupName, NewGroupPage.ActionButton.CREATE_GROUP).render(); groupsPage = drone.getCurrentPage().render(); DeleteGroupFromGroupPage deleteGroup = groupsPage.deleteGroup(groupName).render(); Assert.assertEquals(deleteGroup.getTitle(), "Delete Group"); }
public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[id*='deletegroupdialog_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Delete group window isn't pop up", toe); } }
DeleteGroupFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[id*='deletegroupdialog_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Delete group window isn't pop up", toe); } } }
DeleteGroupFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[id*='deletegroupdialog_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Delete group window isn't pop up", toe); } } DeleteGroupFromGroupPage(WebDrone drone); }
DeleteGroupFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[id*='deletegroupdialog_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Delete group window isn't pop up", toe); } } DeleteGroupFromGroupPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(final long time); HtmlPage clickButton(Action groupButton); String getTitle(); }
DeleteGroupFromGroupPage extends SharePage { public String getTitle() { try { return drone.findAndWait(By.cssSelector("div[id*='deletegroupdialog_h']")).getText(); } catch (TimeoutException toe) { throw new PageOperationException("Delete group window isn't pop up", toe); } } DeleteGroupFromGroupPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(); @SuppressWarnings("unchecked") @Override DeleteGroupFromGroupPage render(final long time); HtmlPage clickButton(Action groupButton); String getTitle();  }