I looked for solutions on the Internet, but they did not help me. One of the best solutions is:
Cypress.Commands.add('solveGoogleReCAPTCHA', () => {
// Wait until the iframe (Google reCAPTCHA) is totally loaded
cy.wait(500);
cy.get('#g-recaptcha *> iframe')
.then($iframe => {
const $body = $iframe.contents().find('body');
cy.wrap($body)
.find('.recaptcha-checkbox-border')
.should('be.visible')
.click();
});
});
But it doesn't work for me. Here is a site (https://eu-develop.backendless.com/registration) where you need to bypass the captcha during registration. If anyone can, I would appreciate any help.
Is it possible to make Cypress just click on the captcha, since there are no pictures to choose from?