Xaccer
New member
Hi im trying to automatically solve captchas using 2captcha and puppeteer and I'm having trouble saving the value of the data-sitekey to a variable I've never used javascript or puppeteer before so any pointers would be helpful
What I'm Trying to get
What I've Tried
What I'm Trying to get
<div id="g-recaptcha" class="g-recaptcha" data-sitekey="6LfjzmQUAAAAAJxTOcx3vYq3hroeYczGfDPU-NlX"></div>
What I've Tried
Code:
const result = await page.evaluate(() => {
return result.querySelectorAll('#g-recaptcha');
})
console.log(result);