@Test(priority = 0) public void getTypesTest() throws Throwable { List<String> types = changeTypePage.getTypes(); assertTrue(types.contains("Select type...")); }
public List<String> getTypes() { List<WebElement> typeOptions = drone.findAll(By.cssSelector("div[style^='visibility: visible;'] form select option")); List<String> typesList = new ArrayList<String>(); for (WebElement webElement : typeOptions) { typesList.add(webElement.getText()); } return typesList; }
ChangeTypePage extends SharePage { public List<String> getTypes() { List<WebElement> typeOptions = drone.findAll(By.cssSelector("div[style^='visibility: visible;'] form select option")); List<String> typesList = new ArrayList<String>(); for (WebElement webElement : typeOptions) { typesList.add(webElement.getText()); } return typesList; } }
ChangeTypePage extends SharePage { public List<String> getTypes() { List<WebElement> typeOptions = drone.findAll(By.cssSelector("div[style^='visibility: visible;'] form select option")); List<String> typesList = new ArrayList<String>(); for (WebElement webElement : typeOptions) { typesList.add(webElement.getText()); } return typesList; } protected  ChangeTypePage(WebDrone drone); }
ChangeTypePage extends SharePage { public List<String> getTypes() { List<WebElement> typeOptions = drone.findAll(By.cssSelector("div[style^='visibility: visible;'] form select option")); List<String> typesList = new ArrayList<String>(); for (WebElement webElement : typeOptions) { typesList.add(webElement.getText()); } return typesList; } protected  ChangeTypePage(WebDrone drone); @SuppressWarnings("unchecked") @Override ChangeTypePage render(); @SuppressWarnings("unchecked") @Override ChangeTypePage render(long time); @SuppressWarnings("unchecked") @Override ChangeTypePage render(RenderTime timer); boolean isChangeTypeDisplayed(); List<String> getTypes(); HtmlPage selectCancel(); void selectChangeType(final String changeType); HtmlPage selectSave(); }
ChangeTypePage extends SharePage { public List<String> getTypes() { List<WebElement> typeOptions = drone.findAll(By.cssSelector("div[style^='visibility: visible;'] form select option")); List<String> typesList = new ArrayList<String>(); for (WebElement webElement : typeOptions) { typesList.add(webElement.getText()); } return typesList; } protected  ChangeTypePage(WebDrone drone); @SuppressWarnings("unchecked") @Override ChangeTypePage render(); @SuppressWarnings("unchecked") @Override ChangeTypePage render(long time); @SuppressWarnings("unchecked") @Override ChangeTypePage render(RenderTime timer); boolean isChangeTypeDisplayed(); List<String> getTypes(); HtmlPage selectCancel(); void selectChangeType(final String changeType); HtmlPage selectSave();  }