Skip to content

Conversation

StefftheEmperor2
Copy link

Describe the changes

I wrote a local plugin for some site .. the problem is, it is heavily loading contents with ajax and recaptcha does not work. i added the possibility in the recaptcha script to wait for someting.

i then use it like this:

response = self.captcha.challenge(key=sitekey, data=html, version='2js', script_params={"wait_for": 'iframe', 'wait_for_target': 'div#g-recaptcha > div > div'})

@StefftheEmperor2 StefftheEmperor2 force-pushed the recaptcha_wait_for_element branch from 9d666fa to e91ee5d Compare January 26, 2023 18:17
@@ -42,57 +42,130 @@ class ReCaptcha(CaptchaService):
"cb636da134c24633f2b2b38f56dfbb92"

RECAPTCHA_INTERACTIVE_JS = """
Copy link
Author

@StefftheEmperor2 StefftheEmperor2 Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Update the signature - i don't have the private key :-)

@StefftheEmperor2 StefftheEmperor2 changed the base branch from main to develop February 7, 2023 09:46
@StefftheEmperor2 StefftheEmperor2 force-pushed the recaptcha_wait_for_element branch from d129d59 to 6a237f6 Compare February 7, 2023 10:04
@GammaC0de
Copy link
Member

Hello,
First, sorry for so late.

In order to check this, can you please send me the use case for this (you can do it by mail if you do not want to do it publicly)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants