vendredi 25 septembre 2020

TestCafe - Selectors with data attribute

I'm having troubles creating a selector for the button with the data-qa attribute. See html:

<div class="stepsInfo_children__4knGx"><button type="button" class="steps_stepsButton__3Ykpu" data-qa="next-design">

I tried this implementation, with no success (from the official documentation): this.nextDesign = Selector("div").withAttribute("data-qa","next-design");

Aucun commentaire:

Enregistrer un commentaire