M
M
MrYogurt2021-08-15 16:24:52
JavaScript
MrYogurt, 2021-08-15 16:24:52

How to interact with iframe google captcha?

I want to do an automatic captcha bypass with one button. To do this, I need to click on the captcha checkbox, if it did not pass and asks to confirm "humanity", then I need to click on the button with the solution of the voice captcha, take the link to the audio file and send it to the server for decryption, then enter the result into input and click submit.

I have the part with captcha recognition on the server side ready, but I can't solve the issue on the front. When trying to access the internals of an iframe, I get a cors. Is there any solution to this problem, or is there some kind of plugin - a wrapper that interacts with the page as a user, and not as a script inside the browser? For example, cypress can do this, but it does not integrate into the main browser.

I run captcha tests on this site.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya12345, 2021-08-17
@MrYogurt

Through selenium, it accidentally turned out to poke one of the pictures while doing another task, dig in this direction or a collective farm from ProBrowser.

$iframe = $driver->findElement(WebDriverBy::xpath('//iframe[@title=\'проверка recaptcha\']'));
$driver->switchTo()->frame($iframe);
$driver->findElement(WebDriverBy::xpath('//div[@class=\'rc-image-tile-wrapper\']'))->click();

V
Vladislav Orlov, 2021-08-17
@haveacess

Everything that you are trying to do has already been invented long before you.
take a look at antigate's dock how they bypass google captcha.
I think it even has an extension. where you insert your token and it does everything automatically (just everything that you are trying to do now)
But in general, there are a lot of similar antigate services, you just need to google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question