|
5#
楼主 |
发表于 2013-6-20 14:32:05
|
只看该作者
回复 4# Alvin-x
谢谢,为什么要加if来判断呢?
- Environment("MyButtons")=browser("name:=ecVision.*","title:=ecVision.*").Page("title:=ecVision Suite","name:=discussWin")._
- frame("html id:=clientframe","name:=clientframe").webbutton("html id:=commonSearch"&MyButtons(Button)&"Btn").exist
- If Environment("MyButtons") Then
- Reporter.ReportEvent 0, "Find Web Button", "Find the Button"&":"& MyButtons(Button)
- else
- Reporter.ReportEvent 1, "Find Web Button", "Can't find the Button" &":"& MyButtons(Button)
- End If
复制代码
我是这样来判断的,exist后面加一个时间有什么好处? |
|