Result=SQAFindObject("Type=PushButton;Name=Submit1")
if(Result=sqaObjectNotFound) then
SQALogMessage sqaFail,"does not find the object",""
else PushButton Click, "Type=PushButton;Name=Submit1"
end if
if Result=sqaObjectNotFound then
SQALogMessage sqaFail,"does not find the object",""
else
Window SetContext,"WindowTag=WEBBrowser",""
PushButton Click, ".\;Type=HTMLFrame;HTMLId=mainFrame;\;Type=PushButton;Name=Submit1"
end if