@Test(groups = "Enterprise-only", dependsOnMethods = "createLink") public void editLink() { linksPage = linksDetailsPage.browseToLinksList().render(); linksPage.editLink(text, editedText, editedText, editedText, true).render(); assertEquals(linksDetailsPage.getLinkTitle(), editedText); assertNotNull(linksDetailsPage); }
public LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox) { AddLinkForm addLinkForm = getLinkDirectoryInfo(linkTitle).clickEdit(); addLinkForm.setTitleField(linkNewTitle); addLinkForm.setDescriptionField(desc); addLinkForm.setUrlField(url); if (internalChkBox) { addLinkForm.setInternalChkbox(); } addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone); }
LinksPage extends SharePage { public LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox) { AddLinkForm addLinkForm = getLinkDirectoryInfo(linkTitle).clickEdit(); addLinkForm.setTitleField(linkNewTitle); addLinkForm.setDescriptionField(desc); addLinkForm.setUrlField(url); if (internalChkBox) { addLinkForm.setInternalChkbox(); } addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone); } }
LinksPage extends SharePage { public LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox) { AddLinkForm addLinkForm = getLinkDirectoryInfo(linkTitle).clickEdit(); addLinkForm.setTitleField(linkNewTitle); addLinkForm.setDescriptionField(desc); addLinkForm.setUrlField(url); if (internalChkBox) { addLinkForm.setInternalChkbox(); } addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone); } LinksPage(WebDrone drone); }
LinksPage extends SharePage { public LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox) { AddLinkForm addLinkForm = getLinkDirectoryInfo(linkTitle).clickEdit(); addLinkForm.setTitleField(linkNewTitle); addLinkForm.setDescriptionField(desc); addLinkForm.setUrlField(url); if (internalChkBox) { addLinkForm.setInternalChkbox(); } addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone); } LinksPage(WebDrone drone); @SuppressWarnings("unchecked") @Override LinksPage render(RenderTime timer); @SuppressWarnings("unchecked") LinksPage render(); @SuppressWarnings("unchecked") @Override LinksPage render(long time); AddLinkForm clickNewLink(); LinksDetailsPage createLink(String name, String url); LinksDetailsPage createLink(String name, String url, String tagName); LinksDetailsPage createLink(String name, String url, String description, String tagName); boolean isCreateLinkEnabled(); LinkDirectoryInfo getLinkDirectoryInfo(final String title); LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox); LinksPage deleteLinkWithConfirm(String title); int getLinksCount(); boolean isEditLinkDisplayed(String linkName); boolean isDeleteLinkDisplayed(String linkName); LinksDetailsPage clickLink(String linkTitle); RssFeedPage selectRssFeed(String username, String password); LinksListFilter getLinkListFilter(); void selectAction(CheckBoxAction checkBoxAction); void selectedItemsAction(SelectedAction selectedAction); boolean isLinkPresented(String title); boolean checkTags(String title, String tag); boolean isNoLinksDisplayed(); }
LinksPage extends SharePage { public LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox) { AddLinkForm addLinkForm = getLinkDirectoryInfo(linkTitle).clickEdit(); addLinkForm.setTitleField(linkNewTitle); addLinkForm.setDescriptionField(desc); addLinkForm.setUrlField(url); if (internalChkBox) { addLinkForm.setInternalChkbox(); } addLinkForm.clickSaveBtn(); waitUntilAlert(); return new LinksDetailsPage(drone); } LinksPage(WebDrone drone); @SuppressWarnings("unchecked") @Override LinksPage render(RenderTime timer); @SuppressWarnings("unchecked") LinksPage render(); @SuppressWarnings("unchecked") @Override LinksPage render(long time); AddLinkForm clickNewLink(); LinksDetailsPage createLink(String name, String url); LinksDetailsPage createLink(String name, String url, String tagName); LinksDetailsPage createLink(String name, String url, String description, String tagName); boolean isCreateLinkEnabled(); LinkDirectoryInfo getLinkDirectoryInfo(final String title); LinksDetailsPage editLink(String linkTitle, String linkNewTitle, String url, String desc, boolean internalChkBox); LinksPage deleteLinkWithConfirm(String title); int getLinksCount(); boolean isEditLinkDisplayed(String linkName); boolean isDeleteLinkDisplayed(String linkName); LinksDetailsPage clickLink(String linkTitle); RssFeedPage selectRssFeed(String username, String password); LinksListFilter getLinkListFilter(); void selectAction(CheckBoxAction checkBoxAction); void selectedItemsAction(SelectedAction selectedAction); boolean isLinkPresented(String title); boolean checkTags(String title, String tag); boolean isNoLinksDisplayed();  }