@Test(dependsOnMethods = "verifyLinksCount") public void verifyIsLinkDisplayed() { assertFalse(siteLinksDashlet.isLinkDisplayed("no link azazaza!")); }
public boolean isLinkDisplayed(String linkName) { checkNotNull(linkName); List<WebElement> eventLinks = getLinkElements(); for (WebElement eventLink : eventLinks) { String linkText = eventLink.getText(); if (linkName.equals(linkText)) { return eventLink.isDisplayed(); } } return false; }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public boolean isLinkDisplayed(String linkName) { checkNotNull(linkName); List<WebElement> eventLinks = getLinkElements(); for (WebElement eventLink : eventLinks) { String linkText = eventLink.getText(); if (linkName.equals(linkText)) { return eventLink.isDisplayed(); } } return false; } }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public boolean isLinkDisplayed(String linkName) { checkNotNull(linkName); List<WebElement> eventLinks = getLinkElements(); for (WebElement eventLink : eventLinks) { String linkText = eventLink.getText(); if (linkName.equals(linkText)) { return eventLink.isDisplayed(); } } return false; } protected  SiteLinksDashlet(WebDrone drone); }
SiteLinksDashlet extends AbstractDashlet implements Dashlet { public boolean isLinkDisplayed(String linkName) { checkNotNull(linkName); List<WebElement> eventLinks = getLinkElements(); for (WebElement eventLink : eventLinks) { String linkText = eventLink.getText(); if (linkName.equals(linkText)) { return eventLink.isDisplayed(); } } return false; } 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 boolean isLinkDisplayed(String linkName) { checkNotNull(linkName); List<WebElement> eventLinks = getLinkElements(); for (WebElement eventLink : eventLinks) { String linkText = eventLink.getText(); if (linkName.equals(linkText)) { return eventLink.isDisplayed(); } } return false; } 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();  }