How to click on the reCAPTCHA using webdriverio

418 Views Asked by At

Hi everyone can you help me with that problem? I'm trying to enter inside the iframe of google reCAPTCHA. Tried several ways to click but didn't work with the iframe it seems.

Appreciate your help. Thank you in advance.

2

There are 2 best solutions below

0
On

Yes, It's Possible to click on the reCAPTCHA test version. Of course, prod version of reCAPTCHA is much complicated to automate.

Test reCAPTCHA looks like this : enter image description here

Here is the code.

const iframe = $('iframe[title="reCAPTCHA"]');

await iframe.click({ x: 30, y: 30 });
0
On

After digging deep, I got the solution, So you can't go ahead by solving reCAPTCHA, either you can white list the URL and use it in your code i.e how you can actually bypass reCAPTCHA.