不谋万世者,不足谋一时;不谋全局者,不足谋一域。君子敏于事而慎于言
新浪微薄:土司阿哈
webRadionGroup和webtable的使用技巧
上一篇 /
下一篇 2008-04-16 20:53:57
/ 个人分类:qtp
!H$~Vo#Ws6o~0' 演示环境http://newtours.demoaut.com/mercuryreservation.php
c$L'QA7~M0Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebRadioGroup("tripType").Select "oneway"51Testing软件测试网,n&WGTd\OD
' all items 获取所有单选框的对象,
Ex1?2Nkrm?0 msgbox Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebRadioGroup("tripType").GetROProperty("all items")51Testing软件测试网{}d&V&k`(~XCw
'items count 获取单选框的个数
qn]5A#?M2yZ0 msgbox Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebRadioGroup("tripType").GetROProperty("items count")51Testing软件测试网:y)H|~m.S
51Testing软件测试网9Tqi5F]DQ
'selected item index 获取当前所选对象index51Testing软件测试网&H:g"A8B:h;teZj
msgbox Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebRadioGroup("tripType").GetROProperty("selected item index")51Testing软件测试网6Fl~F
ly
msgbox Browser("Find a Flight: Mercury").Page("Find a Flight: Mercury").WebRadioGroup("tripType").GetROProperty("value")
b#Ky!E
P051Testing软件测试网0K9N9[1d!HOF5L-G 51Testing软件测试网R9k.P"W&d$Qt;p%X
/J:u4p(dT0jB0如图,知道其中黄色部分,要找到器绿色部分的信息,同时,在本页找不到的情况下,翻页继续找,直到最后一页!
qI5gsh7\1t5\e,o0TO/c@y-`mzP0具体代码如下:51Testing软件测试网R;Dh8OD?+v
d:pO:i.O;FU }0Browser("欢迎使用信贷综合管理系统").Window("查询 -- 网页对话框").Activate
F&b'w vM0'Browser("欢迎使用信贷综合管理系统").Window("查询 -- 网页对话框").Page("查询").Link("5").Click
1L,CxiDx(A051Testing软件测试网-\0p6\Y4v,B\If
&g