I am using QTP 10 and QTP is showing the result as true even if only one browser instance is open. I have Internet Explorer open (only one instance) and no other browser is open. If I execute the below code with different values of "creationtime", then the result is always true. Is this an issue?
Set myB=Browser("creationtime:=2")
If not myB.Exist Then
print "False"
else
print "True"
End If
The result is always true if you have only one instance of the browser open and you change the creation time. I mean for creation time 0, 1, 2...n - the result is always shown as true.