| || |
How do i select first item of combos on a page?
List<WebElement> allOptions = driver.findElements(By.tagName("select"));
//System.out.println(String.format("Value is: %s", allOptions.getSize());
allOptions.getSize() - is giving the count as 2.
There are two combo boxes on my webpage and i need to select first item of the combo for both of them
Re: How do i select first item of combos on a page?
nm,got this figured out.