51Testing软件测试论坛
标题:
如何判断一个控件是否存在?
[打印本页]
作者:
helius
时间:
2008-9-23 09:05
标题:
如何判断一个控件是否存在?
如图,比如一个weblist控件
作者:
wslss007
时间:
2008-9-23 09:21
可以用exist。
作者:
helius
时间:
2008-9-23 09:52
恩 是的
用描述性对象
set Desc=Description.Create()
Desc("html tag").Value="IMG"
set btnExpand=Browser("...").Page("...").ChildObjects(Desc)
If btnExpand.Count > 0 Then
EndIf
问题解决
作者:
假装不在
时间:
2008-9-23 10:06
楼主,你自己写的这个不是weblist,是IMG.
作者:
helius
时间:
2008-9-23 19:01
Desc("html tag").Value="select"
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2