TC官方合作论坛

标题: 求指点。两天了这个问题 [打印本页]

作者: 落幕    时间: 2012-5-31 21:26
标题: 求指点。两天了这个问题
网页.选中元素("浏览器0",真,"id:sex_2 & name:femail")
网页.选择元素("浏览器0","江苏","id:province_value")
上面的选中点了没有用。什么情况也没有。
下面的这句运行后提示
[attach]3588[/attach]很想知道是为什么。
用到的是申请QQ的网站。http://zc.qq.com/chs/index.html
下面是网页分析:
<input type="text" class="new_txt" id="nick" name="nick" tabindex="6" style="z-index: 0; " maxlength="30" autocomplete="off"/>
....................................
<input type="password" class="new_txt" id="password" name="password" tabindex="7" maxlength="16"/>
<input type="password" class="new_txt" name="pass_again" id="password_again" tabindex="8" maxlength="16"/>
<a name="male" id="sex_1" class="checked" tabindex="9">男</a>
<a id="sex_2" class="unchecked" name="femail" tabindex="10">女</a>女
<a href="javascript:void(0)" id="birthday_type_value" class="value_box" tabindex="11">公历</a>
<input id="year_value" class="year_value" tabindex="12" value="年" maxlength="10" autocomplete="off"/>
<input id="month_value" class="month_value" tabindex="13" value="月" maxlength="4" autocomplete="off"/>
<input id="day_value" class="day_value" tabindex="14" value="日" maxlength="4" autocomplete="off"/>
<input type="text" id="country_value" class="country_value" tabindex="15" maxlength="20" autocomplete="off"/>  国家
<input type="text" id="province_value" class="province_value" tabindex="16" maxlength="20" autocomplete="off"   省
<input type="text" id="city_value" class="city_value" tabindex="17" maxlength="20" autocomplete="off"/>市
<input id="code" class="code_ipt" type="text" name="code" tabindex="18" autocomplete="off" maxlength="8"/>  验证码
<img id="code_img" style="float: left; cursor: pointer; margin-left: 5px; " width="130" height="53" src="http://captcha.qq.com/getimage?aid=1007901&r=0.05999789806082845" title="点击换一张"/>
<a class="checked" name="qzone" id="qzone" tabindex="19">同时开通QQ空间</a>
<input class="" type="submit" value="立即注册" title="立即注册" tabindex="21" id="submit"/>  
昵称ID:nick
密码ID:password
确认密码ID:password_again
性别ID:男:sex_1  女:sex_2
生日:年:year_value 月:month_value 日:day_value
所在地:国家:province_value 省:id="province_value" 市:id="city_value"
注册:id="submit"

求解答。



作者: 陌上青衣。    时间: 2012-5-31 21:33
好吧,我承认我只有打酱油了。
作者: 落幕    时间: 2012-5-31 21:34
回复 2楼陌上青衣。的帖子


作者: cylhb    时间: 2012-5-31 21:42
霸占位置-.-一会再研究研究.洗澡

作者: mahua1130    时间: 2012-5-31 22:00
你有的研究了 我为这个头疼死了都

暂时放弃了
作者: 落幕    时间: 2012-5-31 22:06
回复 5楼mahua1130的帖子

我也想放弃了。。
作者: cylhb    时间: 2012-5-31 22:12
好吧,我表示问题已经解决....
问题出现在  选择元素这一行代码中..这个页面的源码选择元素貌似有点特殊...

不过可以选择其他方法...

网页.输入元素文本("浏览器0","中国","id:country_value")
        网页.输入元素文本("浏览器0","广东","id:province_value")
        网页.输入元素文本("浏览器0","广州","id:city_value")
作者: cylhb    时间: 2012-5-31 22:16
忽略掉 选择 公历和农历 这一项的话.基本资料都能填写了
作者: cylhb    时间: 2012-5-31 22:20
现在做这些主要麻烦是一个验证码显示的问题..验证码直接显示到图片控件.求思路
作者: diegocc    时间: 2012-5-31 22:25
看看都不懂....小白路过
作者: 落幕    时间: 2012-5-31 22:31
回复 8楼cylhb的帖子

郁闷 我选择所在地就实现不了。加QQ865060569教下偶。。
作者: tangryo    时间: 2012-5-31 22:37
打酱油的
作者: mahua1130    时间: 2012-5-31 23:14
回复 9楼cylhb的帖子

其实还个有纠结的问题  就是你把年月日 输入完后会提示你没选择或者没有填写
你可以试试
作者: cylhb    时间: 2012-5-31 23:44
确实,纠结,还真没试...
继续看看
作者: cylhb    时间: 2012-6-1 01:24
-.-败了..
看脚本,也看不出来如何真正赋值到哪了.为什么会提示没输入,没看到触发事件,对应函数....

坐等高人出现
作者: tyuyan    时间: 2012-6-1 09:39
mahua1130  好像是冷风吧!
作者: 战斗之神    时间: 2012-6-1 10:13
看看。 学习下啊。  网页控件,下个目标。
作者: 花开花落    时间: 2012-6-1 10:14
来看看 。。
作者: mahua1130    时间: 2012-6-1 10:25
回复 16楼tyuyan的帖子

是的
作者: 落叶归根    时间: 2012-6-1 11:07
看下。
作者: 战地之王    时间: 2012-6-1 11:07
学习了。




欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/) Powered by Discuz! X3.1