getgauge / taiko

A node.js library for testing modern web applications
https://taiko.dev
MIT License
3.57k stars 453 forks source link

click() / press("ArrowDown") not working on datalist option #2574

Open VincentMaes26 opened 2 years ago

VincentMaes26 commented 2 years ago

This is the html setup:

<input list="datalistId">
<datalist id="datalistId">
    <option data-webid="1">Some option</option>
    <option data-webid="2">Some other option</option>
    <option data-webid="3">Another option</option>
</datalist>

When I try

await click(textBox({"list": "datalistId"});
await click($("[data-webid=1"]));

Taiko can't find the datalist option. I've also tried press("ArrowDown") after clicking the textbox but this also doesn't seem to be working.

Any help would be appreciated!