I have a locator for a dropdown list which implemented as virtual list, below is the way I'm fetching list options
dropdown_locator.evaluate_handle('$0 => Array.from($0.__dropdownOptions)
result of this call is a collection of JSHandle objects - how do I select some dropdown option on my page using one of returned objects?
locator.select_option()
rather than element handles, which you almost never need. Prefer locators. If by "virtual list" you mean the dropdown is comprised of non-<select>
/<option>
elements, normal clicks and keyboard presses should work. If you're doing web scraping, sometimes setting the.value = "..."
and issuing an event inside an.evaluate()
block works, or finding another way to trigger the event.