Update on iterating over page.$(selector)?
See original GitHub issueTop Results From Across the Web
Puppeteer iterating through elementHandles from page ...
I have tried the following code which prints it successfully, but that's still not what I'd want. const selectors = await page.$$('# ...
Read more >Iterating through List to Update - Salesforce Stack Exchange
Currently I'm pulling through a list of records from a VisualForce/Apex Page. What I'm trying to do is iterate through this list and...
Read more >In an update script iterating over a large WQL (WPC query ...
Problem. If in a script you iterate over a large WQL resultset (more than 1000 items) to update an attribute which is actually...
Read more >Modify a list while iterating over it in Python | bobbyhadz
To modify a list while iterating over it, use a `for` loop to iterate over a copy of the list. On each iteration,...
Read more >Iterate Over Selected Elements - JavaScript Tutorial
To iterate over the selected elements, you can use forEach() method (supported by most modern web browsers, not IE) or just use the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alexhallam like @vonGameTheory said, you can use
page.$$
to get ELementHandles for all the DOM elementsHope this helps.
Are you looking for something along the following lines?
const selectors = await page.$$(SELECTOR); selectors.forEach( (element) => { console.log(element); });