mardi 23 juillet 2019

How to fetch all options of dropdown values in TestCafe

I have one dropdown which has n options values. How can I fetch all these options values and then assert them in one go in Test Cafe. I did not find anything in Documentation. Please let me now how can I do this.

Assume I have below dropdown :

<select id="city">
    <option>New York</option>
    <option>London</option>
    <option>Paris</option>
</select>

Aucun commentaire:

Enregistrer un commentaire