lundi 20 août 2018

How to select EmberJS elements with puppeteer

Okay, I'm currently stuck. I'm trying to implement CucumberJS and Puppeteer on an EmberJS solution.

I've got a emberjs button:

<span class="ao-button__label" >View Related Payment Requests</span>

and I included an HTML attribute: data-test-button-view-related-payments-requests="true"

When I attempt tp select it:

await this.page.click('[data-test-button-view-related-payments-requests="true"]');

I get:

Error: No node found for selector: [data-test-button-view-related-payments-requests="true"]

What am I doing wrong?




Aucun commentaire:

Enregistrer un commentaire