'How to handle recapcha on webdriverio?
I am having an issue when running multiple tests one after another in webdriverio. When I am running multiple tests (for example a describe that contains multiple it) I am getting a recapcha that basically fails the test. Is there a way to overcome this?
Thanks
Solution 1:[1]
I assume you are using node. You would either have to detect the captcha and give it to the user (you), or find a way to not spam the website enough that it decides you are a robot. Note however, that that is hardly possible as the website obviously doesn't want bots if it uses ReCaptcha. There is no way to just bypass ReCaptcha without humans (yet)
Solution 2:[2]
I recently automated reCAPTCHA QA version (which just need click). Here is the code for same.
public async clickCheckbox(): Promise<void> {
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 | DownloadPizza |
Solution 2 | Munish Kumar |