@Test(groups = {"Enterprise4.2"}) public void getAddAbleCatgories() { EditDocumentPropertiesPage propertiesPage = detailsPage.selectEditProperties().render(); CategoryPage categoryPage = propertiesPage.getCategory().render(); List<String> addAbleCategories = null; addAbleCategories = categoryPage.getAddAbleCatgoryList(); assertTrue(addAbleCategories.size() > 0); assertTrue(addAbleCategories.contains(Categories.TAGS.getValue())); categoryPage.addCategories(Arrays.asList(Categories.TAGS.getValue())).render(); List<String> addedCategories = categoryPage.getAddedCatgoryList(); assertTrue(addedCategories.size() > 0); assertTrue(addedCategories.contains(Categories.TAGS.getValue())); propertiesPage = categoryPage.clickCancel().render(); detailsPage = propertiesPage.selectCancel().render(); }
@Deprecated public List<Categories> getAddAbleCatgories() { List<Categories> categories = new ArrayList<Categories>(); List<WebElement> elements = drone.findAndWaitForElements(AVAILABLE_CATEGORIES_TABLE); for (WebElement webElement : elements) { if (webElement.findElement(By.cssSelector(".addIcon")).isDisplayed()) { categories.add(Categories.getCategory(webElement.findElement(By.cssSelector(".item-name>a")).getText())); } } return categories; }
CategoryPage extends AbstractEditProperties { @Deprecated public List<Categories> getAddAbleCatgories() { List<Categories> categories = new ArrayList<Categories>(); List<WebElement> elements = drone.findAndWaitForElements(AVAILABLE_CATEGORIES_TABLE); for (WebElement webElement : elements) { if (webElement.findElement(By.cssSelector(".addIcon")).isDisplayed()) { categories.add(Categories.getCategory(webElement.findElement(By.cssSelector(".item-name>a")).getText())); } } return categories; } }
CategoryPage extends AbstractEditProperties { @Deprecated public List<Categories> getAddAbleCatgories() { List<Categories> categories = new ArrayList<Categories>(); List<WebElement> elements = drone.findAndWaitForElements(AVAILABLE_CATEGORIES_TABLE); for (WebElement webElement : elements) { if (webElement.findElement(By.cssSelector(".addIcon")).isDisplayed()) { categories.add(Categories.getCategory(webElement.findElement(By.cssSelector(".item-name>a")).getText())); } } return categories; } CategoryPage(WebDrone drone); }
CategoryPage extends AbstractEditProperties { @Deprecated public List<Categories> getAddAbleCatgories() { List<Categories> categories = new ArrayList<Categories>(); List<WebElement> elements = drone.findAndWaitForElements(AVAILABLE_CATEGORIES_TABLE); for (WebElement webElement : elements) { if (webElement.findElement(By.cssSelector(".addIcon")).isDisplayed()) { categories.add(Categories.getCategory(webElement.findElement(By.cssSelector(".item-name>a")).getText())); } } return categories; } 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 { @Deprecated public List<Categories> getAddAbleCatgories() { List<Categories> categories = new ArrayList<Categories>(); List<WebElement> elements = drone.findAndWaitForElements(AVAILABLE_CATEGORIES_TABLE); for (WebElement webElement : elements) { if (webElement.findElement(By.cssSelector(".addIcon")).isDisplayed()) { categories.add(Categories.getCategory(webElement.findElement(By.cssSelector(".item-name>a")).getText())); } } return categories; } 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);  }