assertTrue("First select should be displayed!", firstSelect.isDisplayed());
// assertFalse(secondSelect.isDisplayed(), "Second select should be dispayed");
Graphene.guardAjax(new Select(firstSelect)).selectByVisibleText("Fruits");
List<String> fruitsActual = new ArrayList<String>();
List<WebElement> fruitsOptions = new Select(secondSelect).getOptions();
for (WebElement option : fruitsOptions) {
fruitsActual.add(option.getText().trim());
}
assertTrue("Second select should be dispayed", secondSelect.isDisplayed());
assertEquals("When selected fruits in first select, in the second " + "should be some examples of Fruits",
fruitsExpected, fruitsActual);
Graphene.guardAjax(new Select(firstSelect)).selectByVisibleText("Vegetables");
List<String> vegetablesActual = new ArrayList<String>();
List<WebElement> vegetablesOptions = new Select(secondSelect).getOptions();
for (WebElement option : vegetablesOptions) {
vegetablesActual.add(option.getText().trim());
}
assertEquals("When selected vegetables in first select, in the second " + "should be some examples of vegetables",