Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/199.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android webview中使用jsoup提取除法时无法显示验证码_Android_Webview_Jsoup_Captcha_Division - Fatal编程技术网

在android webview中使用jsoup提取除法时无法显示验证码

在android webview中使用jsoup提取除法时无法显示验证码,android,webview,jsoup,captcha,division,Android,Webview,Jsoup,Captcha,Division,我正在使用以下代码使用htmlunit获取网页的一个分区 String url="url"; String divisonname="dv"; WebView w=(WebView)v.findViewById(R.id.webView1); WebClient webClient = new WebClient(); HtmlPage currentPage = webClient.getPage(url); HtmlElement imgElement = currentPage.getH

我正在使用以下代码使用htmlunit获取网页的一个分区

String url="url";
String divisonname="dv";
WebView  w=(WebView)v.findViewById(R.id.webView1);
WebClient webClient = new WebClient();
HtmlPage currentPage = webClient.getPage(url);
HtmlElement imgElement = currentPage.getHtmlElementById(divisionname);

现在,我不知道如何将这些获取的数据加载到webview中,我只知道这个命令
w.loadurl(url)

Jsoup无法执行JavaScript来获取作为JavaScript结果的动态HTML。那么您如何告诉我任何其他方法可以实现所需的功能。好吧,使用一些可以执行JavaScript的库。使用谷歌,有很多关于解析html和执行javascript的答案。查看webdriver(selenium)或HtmlUnit。我在google中查看了很多页面,但它们没有任何用处。他们没有描述如何在android webview中使用它从包含动态内容的url加载特定分区。