GithubHelp home page GithubHelp logo

Comments (5)

NoriSte avatar NoriSte commented on June 1, 2024 2

#75 contains a longer explanation, the solution is

cy.waitUntil(() => Cypress.$(".e2e-my-lessons-grid > *").length, { timeout: 120000, interval: 1000 })

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 1, 2024

Hi @mesqueeb! In order to understand why your use of waitUntil can't work (using a Cypress assertion inside the waitUntil checker function), please take a look at #139 and #35. If they are not enough, feel free to reopen the issue 😉
Best
Stefano

from cypress-wait-until.

NoriSte avatar NoriSte commented on June 1, 2024

@mesqueeb last not least: if you only need a different timeout for cy.get(".e2e-my-lessons-grid > *").should("exist")... You do not need this plugin! Cypress commands' timeout is customizable, take a look at cy.get options.

Then, simply write

cy.get(".e2e-my-lessons-grid > *", {timeout: 120000}).should("exist")

from cypress-wait-until.

mesqueeb avatar mesqueeb commented on June 1, 2024

@NoriSte I understand. thanks for the info.

I did try this however:

cy.get(".e2e-my-lessons-grid > *", {timeout: 120000}).should("exist")

the problem is that there is no way to set the "interval" and it's literally checking almost every 10ms, really eating up the memory.

That's why I want to use your library to set an interval of around 500ms or so.

How can I use your library to wait until a Dom element exists with a long timeout and an interval of 500ms?

PS: it's not possible to re-open issues that are closed by the repo owner 😅

from cypress-wait-until.

mesqueeb avatar mesqueeb commented on June 1, 2024

@NoriSte Again, you're a legend!!

from cypress-wait-until.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.