mardi 19 juin 2018

What is equivalent for Codeception waitForElement method?

Codeception::waitForElement

I'm rewriting some tests from PHP based testing framework. I've a problem to detect new DOM elements fetched by Ajax POST request.

When I use:

cy.wait(timeout);

I'm able to fill text input loaded upon Ajax request, but this is an anti pattern.

I've also tried solution from: https://github.com/cypress-io/cypress/issues/937#issuecomment-345786498 - not working in my case.

Aucun commentaire:

Enregistrer un commentaire