WebList的Exist方法无效时,可通知获取下拉框的值来验证
上一篇 /
下一篇 2011-08-26 15:53:53
/ 个人分类:QTP
WebList的Exist方法无效时,可通知获取下拉框的值来验证,如下例:
TNumList=Browser("PowerBand Global-SignIn").Page("Record VIN and vehicle").WebList("ctl00$ContentPlaceBody$Transmi").GetROProperty("items count")
If TNumList<>0 Then
NumList = Browser("PowerBand Global-SignIn").Page("Record VIN and vehicle").WebList("ctl00$ContentPlaceBody$selectT").GetItem(2)
Browser("PowerBand Global-SignIn").Page("Record VIN and vehicle").WebList("ctl00$ContentPlaceBody$selectT").Select NumList
End If
收藏
举报
TAG: