Open and select a custom dropdown
Medium70 pts~25 min
- Custom dropdowns
- ARIA roles
Practice app · UI Widgets Lab
Native alerts, confirm and prompt dialogs, a modal, a cookie banner, custom dropdown, autocomplete, date picker and tooltip.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Operate a dropdown built from a button and a listbox, where the Select helper does not work.
Your task
- 1Open TEST_URL and assert
#custom-dropdown-valuereads “Choose a framework”. - 2Click
#custom-dropdownand wait for#custom-dropdown-menu. - 3Click the
[role=option]whose text is “Playwright”. - 4Assert
#custom-dropdown-valuereads “Playwright”.
Acceptance criteria
#custom-dropdown-valuereads “Playwright”#custom-dropdown-menucloses after selection- At least 2 assertions pass
Selenium WebDriver 4 · Selenium · Dropdowns, alerts & popups