How to change element attribute with variable · Issue #4376 · puppeteer/puppeteer

Use the following code,I can change element data-page arrribute to 100。 await page.$eval(' div.panel-footer > div > div > ul > li:nth-child(3) > a ',e => e.setAttribute("data-page","100")); But if ...