@Test(groups = "alfresco-one") public void loadDashBoard() throws Exception { dashBoard = loginAs(username, password); Assert.assertTrue(dashBoard.isLogoPresent()); AlfrescoVersion version = drone.getProperties().getVersion(); if (!version.isCloud()) { Assert.assertTrue(dashBoard.titlePresent()); Assert.assertEquals("Administrator Dashboard", dashBoard.getPageTitle()); } String copyright = dashBoard.getCopyRight(); Assert.assertTrue(copyright.contains("Alfresco Software")); }
public boolean titlePresent() { try { return getPageTitle().contains("Dashboard"); } catch (Exception e) { logger.error(e); } return false; }
DashBoardPage extends SharePage implements Dashboard { public boolean titlePresent() { try { return getPageTitle().contains("Dashboard"); } catch (Exception e) { logger.error(e); } return false; } }
DashBoardPage extends SharePage implements Dashboard { public boolean titlePresent() { try { return getPageTitle().contains("Dashboard"); } catch (Exception e) { logger.error(e); } return false; } DashBoardPage(WebDrone drone); }
DashBoardPage extends SharePage implements Dashboard { public boolean titlePresent() { try { return getPageTitle().contains("Dashboard"); } catch (Exception e) { logger.error(e); } return false; } DashBoardPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DashBoardPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DashBoardPage render(); @SuppressWarnings("unchecked") @Override DashBoardPage render(final long time); boolean titlePresent(); Dashlet getDashlet(final String name); }
DashBoardPage extends SharePage implements Dashboard { public boolean titlePresent() { try { return getPageTitle().contains("Dashboard"); } catch (Exception e) { logger.error(e); } return false; } DashBoardPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DashBoardPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DashBoardPage render(); @SuppressWarnings("unchecked") @Override DashBoardPage render(final long time); boolean titlePresent(); Dashlet getDashlet(final String name);  }