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

When passing option multiple: true to .click() and not all el's clickable, 'undefined' err thrown. #90

Closed
jennifer-shehane opened this issue Dec 8, 2015 · 4 comments

Comments

@jennifer-shehane
Copy link
Member

When using the command .click() and passing the option multiple: true, I can see that at least 1 of the elements I am attempting to click on is not visible. The click command eventually times out and in the command log displays error:

 CypressError: Timed out retrying: undefined

Code

cy.get(".close").click(multiple: true)

It would be nice to instead get an error about "one or more of the elements not being visible, so not being clickable"

Additional Info
screen shot 2015-12-08 at 10 55 16 am

@jennifer-shehane jennifer-shehane added the type: unexpected behavior User expected result, but got another label Dec 8, 2015
@brian-mann
Copy link
Member

{multiple: true} doesn't have anything to do with this. undefined is actually the bug. Normally Cypress tells you exactly why it can't click the element: ie what is covering it up. The problem here is that for some reason it could not figure that out. That is the bug.

@brian-mann brian-mann added type: bug and removed type: unexpected behavior User expected result, but got another labels Dec 8, 2015
@brian-mann
Copy link
Member

It is likely that 0.13.3 fixed this. Can you try your scenario again and see if you can still consistently get this message to appear?

@jennifer-shehane
Copy link
Member Author

This is still occurring in 0.13.3.

@brian-mann
Copy link
Member

Fixed in 0.13.41.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants