@Test(dependsOnMethods = "createContactDataList") public void getDataListDescription() { assertTrue(dataListPage.getDataListDescription(text).contains(text), "Data list '" + text + "' description isn't displayed"); }
public String getDataListDescription(String title) { selectDataList(title); try { String dataListDescription = drone.findAndWait(DATA_LIST_DESCRIPTION).getText(); if (!dataListDescription.isEmpty()) return dataListDescription; else throw new IllegalArgumentException("Cannot find data list description"); } catch (TimeoutException te) { throw new ShareException("Unable to retrieve the data list description"); } }
DataListPage extends AbstractDataList { public String getDataListDescription(String title) { selectDataList(title); try { String dataListDescription = drone.findAndWait(DATA_LIST_DESCRIPTION).getText(); if (!dataListDescription.isEmpty()) return dataListDescription; else throw new IllegalArgumentException("Cannot find data list description"); } catch (TimeoutException te) { throw new ShareException("Unable to retrieve the data list description"); } } }
DataListPage extends AbstractDataList { public String getDataListDescription(String title) { selectDataList(title); try { String dataListDescription = drone.findAndWait(DATA_LIST_DESCRIPTION).getText(); if (!dataListDescription.isEmpty()) return dataListDescription; else throw new IllegalArgumentException("Cannot find data list description"); } catch (TimeoutException te) { throw new ShareException("Unable to retrieve the data list description"); } } DataListPage(WebDrone drone); }
DataListPage extends AbstractDataList { public String getDataListDescription(String title) { selectDataList(title); try { String dataListDescription = drone.findAndWait(DATA_LIST_DESCRIPTION).getText(); if (!dataListDescription.isEmpty()) return dataListDescription; else throw new IllegalArgumentException("Cannot find data list description"); } catch (TimeoutException te) { throw new ShareException("Unable to retrieve the data list description"); } } DataListPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DataListPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DataListPage render(); @SuppressWarnings("unchecked") @Override DataListPage render(long time); DataListPage createDataList(DataLists listType, String title, String desc); void selectDataList(String name); boolean isNewListEnabled(); DataListDirectoryInfo getDataListDirectoryInfo(final String title); DataListPage editDataList(String oldTitle, String newTitle, String newDescription); DataListPage deleteDataListWithConfirm(String title); int getListsCount(); boolean isEditDataListDisplayed(String list); boolean isDeleteDataListDisplayed(String list); String getDataListDescription(String title); boolean isNoListFoundDisplayed(); DataListPage clickCancel(); List<String> getLists(); DataListTreeMenuNavigation getLeftMenus(); boolean isSelectMenuVisible(); DataListPage select(selectOptions option); SharePage chooseSelectedItemOpt(selectedItemsOptions option); }
DataListPage extends AbstractDataList { public String getDataListDescription(String title) { selectDataList(title); try { String dataListDescription = drone.findAndWait(DATA_LIST_DESCRIPTION).getText(); if (!dataListDescription.isEmpty()) return dataListDescription; else throw new IllegalArgumentException("Cannot find data list description"); } catch (TimeoutException te) { throw new ShareException("Unable to retrieve the data list description"); } } DataListPage(WebDrone drone); @SuppressWarnings("unchecked") @Override DataListPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override DataListPage render(); @SuppressWarnings("unchecked") @Override DataListPage render(long time); DataListPage createDataList(DataLists listType, String title, String desc); void selectDataList(String name); boolean isNewListEnabled(); DataListDirectoryInfo getDataListDirectoryInfo(final String title); DataListPage editDataList(String oldTitle, String newTitle, String newDescription); DataListPage deleteDataListWithConfirm(String title); int getListsCount(); boolean isEditDataListDisplayed(String list); boolean isDeleteDataListDisplayed(String list); String getDataListDescription(String title); boolean isNoListFoundDisplayed(); DataListPage clickCancel(); List<String> getLists(); DataListTreeMenuNavigation getLeftMenus(); boolean isSelectMenuVisible(); DataListPage select(selectOptions option); SharePage chooseSelectedItemOpt(selectedItemsOptions option);  }