ad-m / ad-m/python-anticaptcha
Need help enter token of Funcaptcha
- Ngôn ngữ chính
- Python
- Star
- 230
- Fork
- 53
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I try to create an account with Microsoft. https://login.live.com/
Sometimes I do get a FunCaptcha to solve. I am able to solve the captcha und get a valid token.
I try to enter the token like this from the examples:
```
script = """
document.getElementById('FunCaptcha-Token').value = decodeURIComponent('{0}');
document.getElementById('verification-token').value = decodeURIComponent('{0}');
""".format(
quote(token)
)
browser.execute_script(script)
```
I can see with chrome developer-tools that the elements "FunCaptcha-Token" and "verification-token" are present on the website.
Also the token I do receive from anticaptcha is not empty.
Unfortunately I do get this exception message:
selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot set property 'value' of null
The elments "FunCaptcha-Token" and "verification-token" are inside of a iframe with id "enforcementFrame" and there is also a "#document" shadow DOM. In selenium this needs a workaround, but I do not know if the above Javascript function can handle this. (See the screenshot)
I really need help to enter the tokens und also to submit the form. It seems to be not trivial.

Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.