Selenium Java - Handling Form Elements
How can you select the last option in a dropdown without knowing the number of options beforehand using Selenium Java?
select.getOptions().size() to find how many options exist.selectByIndex(size - 1).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions