Micro Focus QTP (UFT) Forums
UFT descriptive programming Browser("creationtime:=-1") not always working - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: UFT descriptive programming Browser("creationtime:=-1") not always working (/Thread-UFT-descriptive-programming-Browser-creationtime-1-not-always-working)



UFT descriptive programming Browser("creationtime:=-1") not always working - SOUMYADEEP - 01-20-2017

I am using the following code to highlight browser instance (only 1 browser instance exists) Browser("CreationTime:=-1").highlight
Sometimes the code is highlighting the only browser instance available while sometimes it is showing "No object found". I have read in QTP unplugged by tarun lalwani that if 1 browser instance exists then Browser("CreationTime:=-1").exist(5) will return true. Please tell what i am doing wrong or understanding wrong here.
I am trying to do certain operations if only 1 browser instance is present. Browser("creationtime:=0") will exist for both 1 instance of browser and multiple instances of browser.