When we get options of a dropdown in Selenium Webdriver the following way
Select dropdown = new Select(driver.findElement(By.id(dropDownId)));
List<WebElement> options = dropdown.getOptions();
What is order of elements in the list returned by getOptions( )
method?
I want to have the elements in the order they appear in the Dropdown. Does it happens that way?