ad-m / ad-m/python-anticaptcha

Need help enter token of Funcaptcha

未关闭
#86 15 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
230
派生
53
PR 合并指标
30 天内没有已合并 PR

描述

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.

![image](https://user-images.githubusercontent.com/50266741/96356251-32784080-10ec-11eb-90bd-b9b9c10ca7cb.png)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。