点击的动作就不用想了 实现不了分析下点击后执行的动作的, 使用代码把这个动作执行了就可以 如果是 GET 方法, 直接webView  加载 url?key=value 就行如果是 POST 方法,学一些 http post 方法,  需要使用 httpclient , 将登陆信息放到 NameValuePair 中 发送给目标url 

解决方案 »

  1.   

    你写的东西太简单了, 具体什么按钮, 按下按钮传递什么数据,  进入什么样的界面 什么方式传递 这个都需要获取的如果你不知倒 用 httpwatch 或者 wireshark 抓一下包
      

  2.   

    怎么样去模拟点击,使用js吗,但是网页上的按钮没有name和type属性,在程序中查找不到按钮,有没有什么办法?
      

  3.   


    服务器那块不是我们写的,不知道具体要交互那些数据,怎么办?
    抓包, 看看传递了 哪些字段, 目的地址是哪,  有些数据从浏览器就得到 用 httpwatch 或者 wireshark 抓一下包
      

  4.   

    怎么样去模拟点击,使用js吗,但是网页上的按钮没有name和type属性,在程序中查找不到按钮,有没有什么办法?用android的模拟点击
      

  5.   

    第一个页面(需要模拟点击“6元包月畅听”)
    <wml>
    <card title="和视频">
    <p><a href="/wap/ytym/ym/sy/index.jsp"><img src="/image/10/367/542.png"  /></a>
    <a href="/orderQuery.msp"><img src="/image/10/367/541.png"  /></a><br  />
    <img src="/image/10/891/969.jpg" width="220"  /><br  />
    <a href="/wap/ytym/ym/sy/kehuduan/index.jsp?pid=10238350">免费下载客户端更多惊喜!</a><br  />
    蔡依林公开恋情有望奉子成婚<br  />
    <a href="/wap/ytym/ym/sy/dpxq/index.jsp?p=n10337899d2c503247618">
    <img src="/image//zhengshi/2055/090/456/2055090456/display/cnr_cifl.png"  /></a><br  />
    33岁蔡依林首次公开承认与小男友锦荣恋情,称会奉子结婚。<br  />
    <anchor>6元包月畅听<go href='/play.msp'>
    <postfield name='type' value='1'></postfield>
    <postfield name='productId' value='2028593814'></postfield>
    <postfield name='wapPlayUrl' value='/wap/ytym/ym/sy/dpxq/index.jsp?p=n10337899d2c503247618'></postfield>
    <postfield name='wapBillUrl' value='/WEB-INF/pages/play/wap/bill.jsp'></postfield>
    <postfield name='nodeid' value='10337899'></postfield>
    <postfield name='contentid' value='503247618'></postfield>
    <postfield name='pDescription' value=''></postfield>
    <postfield name='imageUrl' value='null'></postfield>
    <postfield name='channelId' value='0_10010001005'></postfield>
    </go></anchor><br  />
    <anchor>播放<go href='/play.msp'>
    <postfield name='type' value='1'></postfield>
    <postfield name='productId' value='2028593814'></postfield>
    <postfield name='wapPlayUrl' value='/wap/n10337899d2c503247618.jsp'></postfield>
    <postfield name='wapBillUrl' value='/WEB-INF/pages/play/wap/bill.jsp'></postfield>
    <postfield name='nodeid' value='10337899'></postfield>
    <postfield name='contentid' value='503247618'></postfield>
    <postfield name='pDescription' value=''></postfield>
    <postfield name='imageUrl' value='null'></postfield>
    <postfield name='channelId' value='0_10010001005'></postfield></go></anchor>&nbsp;<anchor>下载<go href='/play.msp'>
    <postfield name='type' value='1'></postfield>
    <postfield name='productId' value='2028593814'></postfield>
    <postfield name='wapPlayUrl' value='/wap/n10337899d2c503247618.jsp'></postfield>
    <postfield name='wapBillUrl' value='/WEB-INF/pages/play/wap/bill.jsp'></postfield>
    <postfield name='nodeid' value='10337899'></postfield>
    <postfield name='contentid' value='503247618'></postfield>
    <postfield name='pDescription' value=''></postfield>
    <postfield name='imageUrl' value='null'></postfield>
    <postfield name='channelId' value='0_10010001005'></postfield></go></anchor>&nbsp;<br  />

    第二个页面(模拟点击订阅按钮) ooooooooo<?xml version="1.0" encoding="utf-8"?>06-04 11:49:43.779: I/System.out(23535): <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">06-04 11:49:43.779: I/System.out(23535): <wml>06-04 11:49:43.789: I/System.out(23535): <card title="和视频">06-04 11:49:43.789: I/System.out(23535):   <p>06-04 11:49:43.789: I/System.out(23535):   <a href="/mobiletv.jsp"><img src="/image/10/650/250.png"/></a>
    06-04 11:49:43.789: I/System.out(23535):     <a href="/orderQuery.msp"><img title="" src="/image/10/253/152.png"/></a><br/>
    06-04 11:49:43.789: I/System.out(23535):     <!--导航区栏目入口-->
    06-04 11:49:43.789: I/System.out(23535):     <a href="/wap/mh/p/sy/share/bzq/index.jsp?wz=bz1-dhl-1">世界杯</a>
    06-04 11:49:43.789: I/System.out(23535):         
    06-04 11:49:43.789: I/System.out(23535):                 |
    06-04 11:49:43.789: I/System.out(23535):             <a href="/wap/yslmymjd/ym/sy/index.jsp?wz=bz1-dhl-2">影视</a>
    06-04 11:49:43.789: I/System.out(23535):         
    06-04 11:49:43.789: I/System.out(23535):                 |
    06-04 11:49:43.789: I/System.out(23535):             <a href="/wap/yllmymjd/ymjgjd/ylsy/index.jsp?wz=bz1-dhl-3">娱乐</a>
    06-04 11:49:43.789: I/System.out(23535):         
    06-04 11:49:43.789: I/System.out(23535):                 |
    06-04 11:49:43.799: I/System.out(23535):             <a href="/wap/dmlmym/ymjgjd/lmsy/index.jsp?wz=bz1-dhl-4">动漫</a>
    06-04 11:49:43.799: I/System.out(23535):         
    06-04 11:49:43.799: I/System.out(23535):                 |
    06-04 11:49:43.799: I/System.out(23535):             <a href="/wap/jcym/ym/jc/index.jsp?wz=bz1-dhl-5">畅看</a>
    06-04 11:49:43.799: I/System.out(23535):         <br/>
    06-04 11:49:43.799: I/System.out(23535):             <a href="/wap/mh/p/sy/pp/index.jsp?wz=bz1-dhl-6">品牌</a>
    06-04 11:49:43.799: I/System.out(23535):         
    06-04 11:49:43.799: I/System.out(23535):                 |
    06-04 11:49:43.799: I/System.out(23535):             <a href="/wap/mh/p/sy/zb/index.jsp?wz=bz1-dhl-7">直播</a>
    06-04 11:49:43.799: I/System.out(23535):         
    06-04 11:49:43.799: I/System.out(23535):                 |
    06-04 11:49:43.799: I/System.out(23535):             <a href="/wap/mh/p/sy/th/index.jsp?wz=bz1-dhl-8">免费</a>
    06-04 11:49:43.799: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/ytym/ym/sy/index.jsp?wz=bz1-dhl-9">悦听</a>
    06-04 11:49:43.809: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/mh/p/sy/dt/index.jsp?wz=bz1-dhl-10">导航</a>
    06-04 11:49:43.809: I/System.out(23535):         <br/>
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/vclub/ym/vsy/index.jsp?wz=bz1-dhl-11">V+</a>
    06-04 11:49:43.809: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/gkymjd/ycym/gksy/index.jsp?name=gkymjd&amp;wz=bz1-dhl-12">G客</a>
    06-04 11:49:43.809: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/isjymjd/ymjgjd/sy/index.jsp?wz=m3-dtsq-2&amp;wz=bz1-dhl-13">首映</a>
    06-04 11:49:43.809: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="/wap/mh/p/sy/zx/index.jsp?wz=bz1-dhl-14">资讯</a>
    06-04 11:49:43.809: I/System.out(23535):         
    06-04 11:49:43.809: I/System.out(23535):                 |
    06-04 11:49:43.809: I/System.out(23535):             <a href="http://c22.cmvideo.cn/iphone3/appdownload.jsp?clientId=wwwshare&amp;filterType=0&amp;wz=bz1-dhl-15">客户端</a>
    06-04 11:49:43.809: I/System.out(23535):         <br/>
    06-04 11:49:43.809: I/System.out(23535):             <!-- cyj start -->06-04 11:49:43.809: I/System.out(23535): 【资费说明】<br/>  06-04 11:49:43.809: I/System.out(23535): <b>06-04 11:49:43.809: I/System.out(23535): 包月订购信息</b><br />06-04 11:49:43.809: I/System.out(23535): 06-04 11:49:43.809: I/System.out(23535): <a06-04 11:49:43.809: I/System.out(23535):  href="/order.msp?type=&amp;productID=&amp;channelID=&amp;wapPlayUrl=&amp;nodeId=&amp;contentId=&amp;encrypt=6049bbfd03734a7c4c2226998eb0ae0a&amp;headUrl=&amp;footUrl=&amp;contSetId=">
                                               <img06-04 11:49:43.809: I/System.out(23535):  src="/image/0/3/dg1.jpg" /></a>06-04 11:49:43.809: I/System.out(23535): <br />06-04 11:49:43.809: I/System.out(23535):   <!--【特别提示】<br/>06-04 11:49:43.809: I/System.out(23535): 特别提示:从2009年4月1日起,中国移动手机视频业务的GPRS流量费免费,彻底解决您观看手机视频时所带来的GPRS流量费之忧。<br/>-->06-04 11:49:43.819: I/System.out(23535): <a href="">返回上一级</a><br/>06-04 11:49:43.819: I/System.out(23535): 06-04 11:49:43.819: I/System.out(23535): <!-- cyj end -->06-04 11:49:43.819: I/System.out(23535): <!--底部功能区开始-->
    06-04 11:49:43.819: I/System.out(23535):   <!--底部第一区块-->
    06-04 11:49:43.819: I/System.out(23535):   <a href="/toWap1.jsp?destUrl=/wap/mh/p/sy/index.jsp&amp;wz=bz1-dbyq-1">极简版</a>
    06-04 11:49:43.819: I/System.out(23535):   <a href="/toWap2.jsp?destUrl=/wap/mh/p/sy/index.jsp&amp;wz=bz1-dbyq-2">炫彩版</a>
    06-04 11:49:43.819: I/System.out(23535):   <a href="/toWap3.jsp?destUrl=/wap/mh/p/sy/index.jsp&amp;wz=bz1-dbyq-3">触屏版</a>
    06-04 11:49:43.819: I/System.out(23535):   <br/>
    06-04 11:49:43.819: I/System.out(23535):   <!--底部第二区块-->
    06-04 11:49:43.819: I/System.out(23535):   <a href="/wap/mh/p/sy/bz/index.jsp?wz=bz1-dbeq-1">使用帮助</a>
    06-04 11:49:43.819: I/System.out(23535):     <a href="/orderQuery.msp?name=mypd1&amp;type=1&amp;wz=bz1-dbeq-2">我的空间</a>
    06-04 11:49:43.819: I/System.out(23535):     <br/>
    06-04 11:49:43.819: I/System.out(23535):   <!--底部第三区块-->
    06-04 11:49:43.819: I/System.out(23535):   <a href="/wap/mh/p/sy/fh/index.jsp?wz=bz1-dbsq-1">返回移动梦网</a>
    06-04 11:49:43.819: I/System.out(23535):     <br/>      
    06-04 11:49:43.819: I/System.out(23535):   <!--底部第四区块-->
    06-04 11:49:43.819: I/System.out(23535):   <a href="/mobiletv.jsp?wz=bz1-dbsi-1">(C)2013 中国移动-和视频</a><br/>
    06-04 11:49:43.819: I/System.out(23535):   <!--底部功能区结束-->
    06-04 11:49:43.819: I/System.out(23535): </p>06-04 11:49:43.819: I/System.out(23535): </card>06-04 11:49:43.819: I/System.out(23535): </wml>
    06-04 11:49:44.249: I/Sensors(284): sns_pwr.c(307):releasing wakelock
    06-04 11:49:44.750: I/Sensors(284): sns_pwr.c(279):acquiring wakelock
    帮忙看一下
      

  6.   

    怎么样去模拟点击,使用js吗,但是网页上的按钮没有name和type属性,在程序中查找不到按钮,有没有什么办法?用android的模拟点击
    恐怕不行吧,他这个是在webview中WAP网页上的按钮
      

  7.   

    找到button的id,试试javascript模拟点击看看行不
      

  8.   

      这个正解,可以在webkit层里面加的