why can't i get the button element? and I've tried various ways to get it

66 Views Asked by At

I'm so exhausted I've tried many ways to get selected but everything I've tried failed. code html <button class="sc-nkuzb1-0 sc-d5trka-0 dsOMxw button" data-theme="home.verifyButton">Authenticate</button>

and i have tried starting from await page.$x, $, $$, waitForSelector or waitForXPath but nothing works and my code `

await Promise.all([
    await page.waitForSelector('#root > div > div.sc-99cwso-0.sc-11w6f91-0.fcBZbp.eWRcSj.home.box.screen > button'),
    await page.waitForSelector('//*[@id="root"]/div/div[1]/button'),
    await page.waitForSelector('button[data-theme="home.verifyButton"]'),
    await page.waitForSelector('//button[contains(., "Authenticate")]'),
    await page.waitForSelector('.sc-nkuzb1-0.sc-d5trka-0.dsOMxw.button') 
  ]);

so where is my mistake?`

i'm trying to be able to click on the button element of puppeteer but i never succeed when i try

0

There are 0 best solutions below