Puppeteer focus loop through input fields

You can try something like this:

const inputs = await page.$$('.price-input');
for (const input of inputs) {
    await page.evaluate((element) => { element.value = ''; }, input);
    await input.focus(); // May be redundant as we use the element for typing below.
    await input.type('14,50');

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top