标题: Robot GUI脚本错误控制 [打印本页] 作者: 海龙 时间: 2005-3-20 14:08 标题: Robot GUI脚本错误控制 Benefite:
Window SetContext, "WindowTag=WEBBrowser", ""
Browser SetFrame,"Type=HTMLFrame;HTMLId=mainfr",""
HTMLLink Click, "Type=HTMLLink;HTMLText=" & product, ""
If sqafindobject("\;Type=Window;Caption=Microsoft Internet Explorer")=0 then
Result=SQAGetProperty("\;Type=Window;Caption=Microsoft Internet Explorer;\;Type=Label;ObjectIndex=1","Text",s)
If S="Please enter Method" then
Window SetContext, "Caption=Microsoft Internet Explorer", ""
PushButton Click, "ObjectIndex=1"
goto Benefite
End if
End if