Reputation: 24500
There is a database of students about 200, I need to choose 2 items from dropdown and click on save button at the end.
Doing manually takes about 5-6 sec. I want to know if it's possible to automate it?
Screenshots below:
Upvotes: 0
Views: 322
Reputation: 76
In selenium you could do it like this:
WebElement mySelectElement = driver.findElement(By.id("id of the dropdown"));
Select dropdown= new Select(mySelectElement);
dropdown.selectByIndex(2);//select it by index
driver.findElement(By.id("id of your button")).click();
Upvotes: 2