Skip to content

How can I deal with a test that has a child element inside of a parent div that has a css property of display:none? #14704

Discussion options

You must be logged in to vote

Make sure the parent is visible first, then click on the child button

cy.get('parent selector').should('be.visible')
  .find('button selector').click()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bahmutov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants