I'm creating a node.js script with puppeteer to create an email account but I'm having trouble with the reCaptcha validation. I found out a plugin within puppeter-extra that solves reCaptchas automatically. (https://www.npmjs.com/package/puppeteer-extra-plugin-recaptcha)
And with the following website: https://www.google.com/recaptcha/api2/demo I can get the script to validate my reCaptcha and go forward.
But in the https://mail.protonmail.com/create/new?language=en after inserting the email + password and click the button to continue, a reCaptcha appears but the script doesn't solve it. In order to solve a reCaptcha a sitekey variable is needed and in the source code of the website, I can't find it.
If I inspect the element I actually can get the source of the captcha https://mail.protonmail.com/api/users/captcha/signup and find a var named "publickey" which is very similar to the 'sendKey' in the website I got the script to work.
I'm a bit stuck and would like to know how I can implement this.