~.qTp.~ 好久不见~~~ Hey dude @ Long time no see ·^o^·
childobject结合描述性编程循环遍历获取对象(zt)
上一篇 /
下一篇 2010-07-16 11:46:31
/ 个人分类:.qTp. 为卿加冕
'描述对象
Set Desc = Description.Create()
oDesc("micclass").Value = "WebEdit"
'获取webedit的数量
edit_count=Browser("百度一下,你就知道").Page("百度一下,你就知道").ChildObjects(oDesc).count
'获取子对象集合
set editobjects=Browser("百度一下,你就知道").Page("百度一下,你就知道").ChildObjects(oDesc)
For i=0 to edit_count-1
If editobjects(i).GetROProperty("name")="wd" then
editobjects(i).set "helloworld"
End If
Next
收藏
举报
TAG: