@Test(dependsOnMethods="getAddAbleCatgories", groups = {"Enterprise4.2"}) public void clickCancel() { EditDocumentPropertiesPage propertiesPage = detailsPage.selectEditProperties().render(); CategoryPage categoryPage = propertiesPage.getCategory().render(); categoryPage.addCategories(Arrays.asList(categoryTags)); List<String> addedCategories = categoryPage.getAddedCatgoryList(); assertTrue(addedCategories.size() > 0); assertTrue(addedCategories.contains(categoryTags)); propertiesPage = categoryPage.clickCancel().render(); detailsPage = propertiesPage.selectSave().render(); propertiesPage = detailsPage.selectEditProperties().render(); categoryPage = propertiesPage.getCategory().render(); addedCategories = categoryPage.getAddedCatgoryList(); assertTrue(addedCategories.size() == 0); propertiesPage = categoryPage.clickCancel().render(); detailsPage = propertiesPage.selectCancel().render(); }
public HtmlPage clickCancel() { try { drone.find(CANCEL_BUTTON).click(); return drone.getCurrentPage(); } catch (NoSuchElementException nse) { throw new PageException("Not able find the cancel button: ", nse); } }
CategoryPage extends AbstractEditProperties { public HtmlPage clickCancel() { try { drone.find(CANCEL_BUTTON).click(); return drone.getCurrentPage(); } catch (NoSuchElementException nse) { throw new PageException("Not able find the cancel button: ", nse); } } }
CategoryPage extends AbstractEditProperties { public HtmlPage clickCancel() { try { drone.find(CANCEL_BUTTON).click(); return drone.getCurrentPage(); } catch (NoSuchElementException nse) { throw new PageException("Not able find the cancel button: ", nse); } } CategoryPage(WebDrone drone); }
CategoryPage extends AbstractEditProperties { public HtmlPage clickCancel() { try { drone.find(CANCEL_BUTTON).click(); return drone.getCurrentPage(); } catch (NoSuchElementException nse) { throw new PageException("Not able find the cancel button: ", nse); } } CategoryPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CategoryPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CategoryPage render(long time); @SuppressWarnings("unchecked") @Override CategoryPage render(); boolean isCategoryPageVisible(); @Deprecated HtmlPage remove(List<Categories> categories); HtmlPage removeCategories(List<String> categories, String... parentCategories); @Deprecated HtmlPage add(List<Categories> categories); HtmlPage addCategories(List<String> categories, String... parentCategories); @Deprecated List<Categories> getAddAbleCatgories(); List<String> getAddAbleCatgoryList(); @Deprecated List<Categories> getAddedCatgories(); List<String> getAddedCatgoryList(); HtmlPage clickCancel(); HtmlPage clickOk(); @Deprecated void openSubCategories(Categories category); void openSubCategories(String category); }
CategoryPage extends AbstractEditProperties { public HtmlPage clickCancel() { try { drone.find(CANCEL_BUTTON).click(); return drone.getCurrentPage(); } catch (NoSuchElementException nse) { throw new PageException("Not able find the cancel button: ", nse); } } CategoryPage(WebDrone drone); @SuppressWarnings("unchecked") @Override CategoryPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override CategoryPage render(long time); @SuppressWarnings("unchecked") @Override CategoryPage render(); boolean isCategoryPageVisible(); @Deprecated HtmlPage remove(List<Categories> categories); HtmlPage removeCategories(List<String> categories, String... parentCategories); @Deprecated HtmlPage add(List<Categories> categories); HtmlPage addCategories(List<String> categories, String... parentCategories); @Deprecated List<Categories> getAddAbleCatgories(); List<String> getAddAbleCatgoryList(); @Deprecated List<Categories> getAddedCatgories(); List<String> getAddedCatgoryList(); HtmlPage clickCancel(); HtmlPage clickOk(); @Deprecated void openSubCategories(Categories category); void openSubCategories(String category);  }