-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using without an "submit" button #3
Comments
I haven't ever tried to use the discord website for this but you can try something like this:
Not entirely sure if this works but let me know. Edit: Another thing you can also do is submit the form using plain javascript. I believe something like this would also be an option: await page.evaluate(() => {
document.querySelector('formselector').submit();
}); |
Haven't heard anything in a few day so I am going to close this issue |
Hello, I have the same problem and I tried what you said. |
Did you find a working solution? |
I'm not at home yet so i can't provide the correct code for it but i will do, if i'm at home. |
@FuckingToasters It would be nice to see some code, better even for python as on discord there is a hcaptcha without submit button when logging in. I get my token from 2captcha but no idea how to submit it Help highly appreciated |
Hi, there are different ways to automatically solve hcaptcha were no submit button is located on page.
Note, that i didn't tried any solution mentioned above. Next two weeks i have time to look into this case and can improve the mentioned codes to fit the discord site. |
It seems like a lot of people struggle with trying to submit a page without a submission button so I may push a new update that will do it for you (prefer not to thought). A really simple solution is exactly what @FuckingToasters explained and can be accomplished with realistically one line of code in javascript. An example code block using puppeteer would be: await page.evaluate((token) => {
`__grecaptcha_cfg.clients[0].0.0.callback('${token}')`;
}, token); Screen.Recording.2022-06-02.at.9.58.09.AM.mov |
Thanks for the reply, when I put __grecaptcha_cfg.clients into the console it says:
|
you need to run when the captcha is located on page i guess |
I do, but sadly it always does error, would you mind trying it yourself? |
I'm currently working on a registrator. i'm not on captcha page so far Update, i'm now on the captchapage and the the solutions i sent above did somehow not work for me. I'm now looking for help too :) |
So this |
Also there is this youtube tutorial, anyone understands it and could share if it works and how if yes? |
Yo i got great news fr you guys. It is not difficult to solve it. driver.execute_script("document.querySelector('iframe').parentElement.parentElement.__reactProps$.children.props.onVerify('{}')".format(captcha_answer)) Good Luck with it :) |
Interesting, I may look into a javascript alternative for this for anyone attempting to submit the page this way in a javascript project. Glad to hear you were able to get it working thought. |
I'm not really familiar with JS but i'm 100% sure that in js there is also a function which execute javascriptcode in the browser. this should work there too. |
Ya in puppeteer the |
Oh okay. Well the code that i sent which is able to solve captchas works fine even if the ID changes i guess. |
I am having a similar issue when submitting an hcaptcha token in discord. But not when registering an account rather when joining an hcaptcha protected server like this one: https://discord.gg/undw3
Even though the captcha key is within the payload of the request. There is something missing and I just can not finde out what, I would highly appreciate if u could help me with this one.
|
I'm not sure and not tried following info but it might help you a bit.
|
I get the following error: Please tell me what can be done with this? |
same error, can you help me ? |
@Romhast if you're asking about this error, it is a selenium error and has nothing to do with Puppeteer or this plugin. I'd suggest checking out selenium's issues or maybe StackOverflow. |
I modified the code i sent above a bit: document.querySelector('iframe').parentElement.parentElement.__reactProps$yczaqvmjd7p.children.props.onVerify('captchasolution') See, |
Hi! I stumbled upon this while trying to find a way to solve hcaptcha from another website. I still haven't found a fix but maybe it would be of help for solving your problem in discord.
For instance: Hope it helps. |
You have to get all the values inside of the element in order to get the "reactProps" I've modified the code above to |
Here kiddos |
Hello dear Maxhem2. If i need solve hCapthca, but not in Discord, what need i change in this code? I spend 4 h and didnt find the way to callback hCaptcha without button... https://nopecha.com/demo/hcaptcha simpple site, but i`m idk. I want to learn this way, can u help me? |
Hey,
on some HCaptcha protected sites there aren't any "submit" buttons like in your example.
If you try to register an account on Discord for example.
Are there any ways to solve this? I know on Recaptcha there was an
callback
function. But I don't know too much about HCaptcha.Thanks:)
The text was updated successfully, but these errors were encountered: