-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element is never found when timeout options are overrided #355
Comments
hi @mturcan Thanks |
Change you code this way cy.waitUntil(
- () => {
+ () =>
cy.reload().then(
() => Cypress.$(selector).length,
);
- },
{
interval: 10000,
timeout: 120000,
errorMsg: 'Element not found',
},
); The error was that
while your function returns By using the code I shared, it works for me locally, please let me know it it works for you too 😊 |
@NoriSte it works in the forked repo, however it fails in my original project :( thank you anyway! |
Ok, at least it's not this plugin's fault 😁 I guess the element appears later compared to the |
Hello,
Have an example here of checking if element is visible on the page, but it can appear later so I refresh the page each time. Also, overrided default options.
The problem is that, even if element appeared on the page,
waitUntil
never stops and fails withElement not found
.And this example fails with
You are mixing async and sync code
when element is found.Could you please help? What am I doing wrong?
Thank you
The text was updated successfully, but these errors were encountered: