'How to click on the reCAPTCHA using webdriverio

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.



Solution 1:[1]

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.

Solution 2:[2]

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 });

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Prakash Patil
Solution 2 Munish Kumar