Problems clicking with javascript ( npm puppeeter )

Asked

Viewed 38 times

1

Good morning, afternoon or evening reader. As the title says, I am creating an application to automate my instagram with Puppeteer and I arrived at this button, which I am not able to click.

I tried to use page.waitForSelector and page.click and nothing works... My last attempt was:

await page.waitForNavigation({ waitUntil: 'networkidle0'});

await page.evaluate(() => { document.querySelector('a.-nal3').click(); });

Image of the button by inspecting element:

inserir a descrição da imagem aqui

Does anyone have any idea what I’m missing?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.