Puppeteer / Node.js to click a button as long as it exists — and when it no longer exists, commence action
问题 There is a web page that contains many rows of data that are continually updated. There is a fixed number of rows, so old rows are cycled out and not stored anywhere. This page is broken up by a "load more" button that will appear until all of the stored rows are displayed on the page. I need to write a script in Puppeteer / Node.js that clicks that button until it no longer exists on the page... THEN ...read all the text on the page. (I have this part of the script finished.) I am new to