When i inspect an website with Chrome
i can to see some iframe
data like this:
Example Chrome inspect https://i.stack.imgur.com/9VxSA.png
我做了以下解决方案:
- 我可以检查WebView to get iFrame元素,但我无法记录这些
内容(如input标签等)。
- 我尝试从以下位置获取新的验证码令牌iframe链接,但收到的令牌对其服务无效。
- 我尝试使用一些方法获得这么多的令牌JavaScript代码但我总是收到null
它尝试通过以下代码获取所有内容:
@Override
public void onPageFinished(WebView view, String url) {
super.onPageFinished(view, url);
view.getSettings().setLoadsImagesAutomatically(true);
Log.d(TAG, "onPageFinished: " + url);
if (url.startsWith(MyApp.LOGIN_URL))
chkLogin.postDelayed(() -> webView.loadUrl("javascript:window.HTMLOUT.processHTML('<head>'+document.getElementsByTagName('html')[0].innerHTML+'</head>');"),300);
}
但我得到了 iframe 的结果:
<iframe src="https://www.google.com/recaptcha/api2/anchor?ar=1&k=-&co=..&hl=en&v=&size=invisible&cb=j2nwbbdqkt4c" width="256" height="60" role="presentation" name="a-axd1alpz93t" frameborder="0" scrolling="no" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox">(no content in result)</iframe>
那么,如何获得iFrame安卓内容WebView?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)