Selenium Java - Handling Form Elements
You have a dropdown with options:
You want to select "Cherry" but only know its position is third in the list. Which code snippet correctly selects "Cherry" using Selenium Java?
<option value="1">Apple</option> <option value="2">Banana</option> <option value="3">Cherry</option> <option value="4">Date</option>
You want to select "Cherry" but only know its position is third in the list. Which code snippet correctly selects "Cherry" using Selenium Java?
