You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My Test failing in between. It failing to find element but some times it runs without error.
I tried to perform same on google and found same issue.
describe('My First Test',()=>{before(()=>{cy.visit('https://www.google.com/');})it('Search Validation',()=>{cy.get('input[name="q"]').type('cypress');cy.get('form[name="f"]').submit();cy.get('a[href="https://docs.cypress.io/guides/overview/why-cypress.html"]').should('be.visible');cy.get('input[name="q"]').clear().type('Angular');})})
Above test fails in between saying form[name="f"] not found.
Any idea why this inconsistent behavior
Cypress version 5.6.0
The text was updated successfully, but these errors were encountered:
The server requests don't always complete within the 5 seconds that Cypress is looking for the form to render.
So either assert on the server requests completely or give more time than 5 secs to find the form element, cy.get('form[name="f"]', { timeout: 30000 }).submit();
My Test failing in between. It failing to find element but some times it runs without error.
I tried to perform same on google and found same issue.
Above test fails in between saying form[name="f"] not found.
Any idea why this inconsistent behavior
Cypress version 5.6.0
The text was updated successfully, but these errors were encountered: