G
G
Goobert Crypto2020-01-05 19:12:46
Node.js
Goobert Crypto, 2020-01-05 19:12:46

How to implement, press the button as long as it exists - and when it no longer exists, stop?

5e120a7ccf253113552978.png
There is a web page that contains many rows of data that are constantly updated.
There is a fixed number of rows, so old rows are cycled out and not stored anywhere.
This page breaks down into a "load more" button that will be displayed until the page shows all saved rows.
I need to write a script in Puppeteer / Node.js that clicks this button until it no longer exists on the page...
I'm new to Puppeteer and don't know how to do this any help would be greatly appreciated)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-01-05
@goober-crypto

Look at the function that is triggered when this button is clicked and implement a loop that will check its presence on the page, if it is missing, stop the loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question