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

cy.get not yielding visible component. #2806

Closed
cavaloni opened this issue Nov 19, 2018 · 2 comments
Closed

cy.get not yielding visible component. #2806

cavaloni opened this issue Nov 19, 2018 · 2 comments

Comments

@cavaloni
Copy link

Current behavior:

The command cy.get('a').contains('Engineering & Technicians') is yielding 0 elements in spite of it being visible and accessible in devtools.

screen shot 2018-11-19 at 10 26 02 am

Desired behavior:

Yield the element visible in the DOM at the time of the cypress command mentioned above.

Steps to reproduce:

It would take a while to separate out a piece of the project for this particular test. Our team is evaluating E2E frameworks and are limited in our resources to it. It may be possible though, and particularly if we are leaning strongly towards Cypress. So in the case the above may not be enough information, we may be able to do so.

I understand this is currently likely not enough information to assist, but I am not sure in this case what would be most helpful. I will provide any requested information as needed.

Versions

Cypress v3.1.0
Mac OS 10.12.6
Chrome Version 70.0.3538.102

@jennifer-shehane
Copy link
Member

Hey @cavaloni, I'm actually not able to reproduce this issue.

I was wondering how the ampersand in the HTML may have been written - although I tried a few things like using & and & in the HTML content and Cypress still found it. Any insight?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Nov 19, 2018
@jennifer-shehane
Copy link
Member

Unfortunately we have to close this issue as there is not enough information to reproduce the problem.

Please comment in this issue with a reproducible example and we will reopen the issue. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants