Selenium Java - Handling Form Elements
What is wrong with the following Selenium Java code snippet?
Assuming the dropdown has only 4 options indexed 0 to 3.
Select select = new Select(driver.findElement(By.id("dropdown")));
select.selectByIndex(5);Assuming the dropdown has only 4 options indexed 0 to 3.
