@Test(dependsOnMethods = "verifyIsLinkDisplayed") public void createLinkFromDashlet() { linksDetailsPage = siteLinksDashlet.createLink("name", "google.com"); assertNotNull(linksDetailsPage); }
public LinksDetailsPage createLink(String name, String url) { drone.findAndWait(CREATE_LINK).click(); AddLinkForm addLinkForm = new AddLinkForm(drone); addLinkForm.setTitleField(name); addLinkForm.setUrlField(url); addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone).render(); }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public LinksDetailsPage createLink(String name, String url) { drone.findAndWait(CREATE_LINK).click(); AddLinkForm addLinkForm = new AddLinkForm(drone); addLinkForm.setTitleField(name); addLinkForm.setUrlField(url); addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone).render(); } }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public LinksDetailsPage createLink(String name, String url) { drone.findAndWait(CREATE_LINK).click(); AddLinkForm addLinkForm = new AddLinkForm(drone); addLinkForm.setTitleField(name); addLinkForm.setUrlField(url); addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone).render(); } protected  SiteLinksDashlet(WebDrone drone); }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public LinksDetailsPage createLink(String name, String url) { drone.findAndWait(CREATE_LINK).click(); AddLinkForm addLinkForm = new AddLinkForm(drone); addLinkForm.setTitleField(name); addLinkForm.setUrlField(url); addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone).render(); } protected  SiteLinksDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteLinksDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteLinksDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteLinksDashlet render(); int getLinksCount(); boolean isLinkDisplayed(String linkName); LinksDetailsPage createLink(String name, String url); boolean isDetailsLinkDisplayed(); }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public LinksDetailsPage createLink(String name, String url) { drone.findAndWait(CREATE_LINK).click(); AddLinkForm addLinkForm = new AddLinkForm(drone); addLinkForm.setTitleField(name); addLinkForm.setUrlField(url); addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone).render(); } protected  SiteLinksDashlet(WebDrone drone); @SuppressWarnings("unchecked") @Override synchronized SiteLinksDashlet render(RenderTime timer); @SuppressWarnings("unchecked") @Override SiteLinksDashlet render(long time); @SuppressWarnings("unchecked") @Override SiteLinksDashlet render(); int getLinksCount(); boolean isLinkDisplayed(String linkName); LinksDetailsPage createLink(String name, String url); boolean isDetailsLinkDisplayed();  }