Custom dropdown practice
Three custom-built dropdowns — not native <select> elements. Each opens on click of a
.select-trigger, shows options in a floating panel, and writes the chosen value back into the trigger.
Build a reusable Playwright helper that handles all three before peeking at the solution.
id=lang-trigger
data-testid=dropdown-language · lang-trigger
class=select-trigger
option role=option · data-value=Java/Python/…
id=framework-trigger
data-testid=dropdown-framework · framework-trigger
id=experience-trigger
data-testid=dropdown-experience · experience-trigger
No selection yet — pick from the three dropdowns above.