/** * Checks if the drop down has the specified operation * * @param operation the link text used to check for operation existence, e.g. "Edit Details" * @return true, if a link with the specified link text exists */ public boolean hasOperation(final String operation) { PageElement menuItem = rootMenuElement.find(By.linkText(operation)); return menuItem.isPresent() && menuItem.isVisible(); }