There is
page.selectOption()
:
https://playwright.dev/docs/api/class-page#page-select-optionThis selector seems to match all the dropdowns on the page that you want:
Since all the select elements are already PRESENT in the DOM (just not visible until the container is clicked), you can do:
page.selectOption('selector-here', 'NONE', { force: true });
force
set to
true
means the element doesn't necessarily have to be visible (see more here:
https://playwright.dev/docs/actionability)
But since you want to click all of them, you'll need to loop through all elements that that selector resolves to and run the selecting logic for each one.