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