get the data attribute value in puppeteer code example
Example: puppeteer click element with custom property
const element = await page.$('[data-testId="testid-button-refresh"]') // this is an ElementHandle
const element = await page.$('[data-testId="testid-button-refresh"]') // this is an ElementHandle