I am in a situation where I have to expand the drop down and from the list of values after expansion, I have to select one value.
Could you please help in this?
Below is the code I have used so far:
List<WebElement> elements = driver.findElement(By.id("Some Value"));
for (WebElement element: elements)
{
new Actions(driver).sendKeys(Keys.Arrow_Down).perform();
if(Element.getText().equals("Cliam Document"))
{
element.click();
}
}