Skip to content
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

Click randomly crashes with assertions - element not visible #3078

Closed
Saibamen opened this issue Jan 7, 2019 · 1 comment
Closed

Click randomly crashes with assertions - element not visible #3078

Saibamen opened this issue Jan 7, 2019 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@Saibamen
Copy link
Contributor

Saibamen commented Jan 7, 2019

My code:

cy.contains(text).should('exist').should('be.visible').click()

But this code crashes randomly on click() method (not visible element) even if two assertions passed (should exist and be visible)...

Similar bug: #410

Current behavior:

Click() returns randomly error:

CypressError: Timed out retrying: cy.click() failed because this element is not visible:

<li class="rangeslider__label-item" data-value="7" style="left: 915px;">excelent</li>

This element '<li.rangeslider__label-item>' is not visible because it has an effective width and height of: '0 x 0' pixels.

dw2d2d2

Desired behavior:

Click() should click on element

Versions

Cypress 3.1.4, Chrome 71, Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants