Skip to content
CodeKruPro

Multi-Select Dropdown

29/70

Multi-Select Dropdown

For multi-select dropdowns, pass an array to selectOption().

On the Dropdowns page, #multiSelect allows selecting multiple frameworks: Selenium, Playwright, Cypress, TestCafe, WebDriverIO.

Task:

  1. Navigate to https://testkru.com/Elements/Dropdowns
  2. Select both "Selenium" and "Playwright" from the multi-select
  3. Get all selected options and print their count and text

Expected output:

Selected count: 2
Selenium
Playwright