QTP中怎么取listBox值
来源:百度知道 编辑:UC知道 时间:2024/06/17 16:25:38
ASPX中有boxlist ,其实解析完后就是select
<html>
<body>
<select id="slt1" size="3">
<option id="opt1" name="opt1">abcdefag</option>
<option id="opt2" name="opt2">adddddg</option>
<option id="opt3" name="opt3">abcdffffefag</option>
</select>
</body>
</html>
取value吗?
With Browser("Browser").Page("Page")
.WebList("select").Select "adddddg"
.WebList("select").Select "abcdffffefag"
.WebList("select").Select "abcdefag"
Dim a
a=.WebList("select").GetROProperty("items count")
b=.WebList("select").GetROProperty("value")
End With
msgbox a
msgbox b
有问题mail 83753036@qq.com。不上QQ。
QTP是什么?<