Selenium / Quiz

Select Dropdowns Without Tears

The Select class is a scalpel: perfect on native <select>, useless on div-based fakes. Know which is which before your suite finds out for you.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
9 min

// MISSION BRIEF

Your Mission

A registration form has three dropdowns: a native <select>, a multi-select, and a shiny React custom dropdown built from divs. Your suite has to drive all three.

Six questions on the Select support class, its exceptions, and the custom-dropdown escape hatch. Speed bonus active.

// FIRST CONTACT

Battle teaser

You wrap a div-based custom dropdown in new Select(element). What happens?

  1. AIt works, Select handles any dropdown-shaped widget
  2. BIt silently selects the first option
  3. CUnexpectedTagNameException, Select only works on real <select> elements
  4. DNoSuchElementException on construction
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

seleniumselectdropdownswebui-automation