Forum Discussion
mesg2anil
15 years agoRegular Contributor
Hi Jared,
I'm with this below to check if the object is existing the I will return a message Fail, if the object is not existing i will return a message as Pass...
add
I'm with this below to check if the object is existing the I will return a message Fail, if the object is not existing i will return a message as Pass...
sub add
add
Set iexplore = Sys.Process("iexplore", 2).Page("http://server/Default.asp").document.frames.Frame("mainFrame").document.frames.Frame("ContentFrame")
If NOT iexplore.document.all.Item("Submit").Exists Then
log.Message "Passed"
Else
log.Error "Failed"
End If
End sub
It is working if the object is found, but if the object is not found it is erroring out as "Unable to find object Item("Submit")" How to resolve this issue? Please insist...!