M
M
Mikhail2021-11-20 07:56:08
Node.js
Mikhail, 2021-11-20 07:56:08

Puppeteer - how to remove all invisible elements from the DOM or vice versa select only visible ones?

I make a request, I get DOM how now to get html only the one that is visible?
Without a specific class and element id. Because the sites are different. And you need to somehow get the html that the user sees if he actually opens the site.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question