Skip to content

Puppeteer won't click on div in acceptance test #20140

Closed Answered by agallop
Vir-8 asked this question in Q&A (Developer Workflow)
Discussion options

You must be logged in to vote

Hey @Vir-8,

I believe I know the issue.
There is a second element (...that occurs first within the html) with the same class that is hidden and not clickable.

If you inspect the page (right-click -> Inspect) and press Ctrl-f, you can search for the class and notice that there are two hits.

You would have to explicitly click the second element, or click the one that is clickable.

Hope that helps :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@agallop
Comment options

@Vir-8
Comment options

Vir-8 Apr 9, 2024
Collaborator Author

Answer selected by Vir-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants