aw1875 / puppeteer-hcaptcha

A library to solve hcaptcha challenges that are automated within puppeteer. You can automatically set response values where they should be so the only thing left for you is submitting the page or you can get the response token.
https://www.npmjs.com/package/puppeteer-hcaptcha
137 stars 38 forks source link

Using without a "submit" button #45

Closed popeyebot closed 2 years ago

popeyebot commented 2 years ago

My issue is explained here, the old repo. https://github.com/aw1875/puppeteer-hcaptcha/issues/3

I can't submit the form after getting the answer of hcaptcha verification on discord website.

I tried your suggestions "await page.keyboard.press('Enter') or await page.type(String.fromCharCode(13)) to submit the page." but the callback isn't submitted at all.

Do you have another suggestion to solve this issue ?

aw1875 commented 2 years ago

There are projects that use this module for creating discord accounts. I'm sure if you take a look at those you can see how you can submit a form programatically.

BrokedTV commented 2 years ago

I'm facing the same challenge, i tried to look up for those "discord" script to understand how they do it, but i can't seem to be able to find them

aw1875 commented 2 years ago

@BrokedTV theres literally a discord account generator in the dependents section of this package.

BrokedTV commented 2 years ago

Appreciated that, is that actually a working implementation? it seems it just get the results and that's it.

badjoras7 commented 2 years ago

Appreciated that, is that actually a working implementation? it seems it just get the results and that's it.

@aw1875 as @BrokedTV that implementation only gets the result, doesn't continue to the next page. How to proceed with a submit button?

aw1875 commented 2 years ago

I'm not entirely sure the best approach but I can assume that it can be submitted like a typical form. As I said I've seen multiple people do exactly this without any issues so I'm sure you will be able to figure it out by just playing around with the code.