SQASuspendLogOutput
Result = WindowVP (Exists, "Caption={* - Microsoft Internet Explorer}", "VP=Test;Wait=1,3")
SQAResumeLogOutput
if Result=1 then
Window SetContext, "Caption={* - Microsoft Internet Explorer}", ""
Window CloseWin, "", ""
end if
SQASuspendLogOutput ------不用管
Result = WindowVP (Exists, "Caption={* - Microsoft Internet Explorer}", "VP=Test;Wait=1,3") ------窗口验证,*是通配符,表示所有窗口。这句的意思是,只要有窗口存在,windowvp就返回1,否则返回0
SQAResumeLogOutput ------不用管
if Result=1 then
Window SetContext, "Caption={* - Microsoft Internet Explorer}", "" ------可以理解为焦点放到这个窗口上,就是马上要对这个窗口进行操作
Window CloseWin, "", "" ------关闭这个窗口
end if