Micro Focus QTP (UFT) Forums
Code not recognising Browser object as existing - 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: Code not recognising Browser object as existing (/Thread-Code-not-recognising-Browser-object-as-existing)



Code not recognising Browser object as existing - brigna - 12-04-2014

Hi

I've been asked to look at someone's code in order to get it working, but I can't figure out why it is exiting the test within one of its functions. Could someone have a look and tell me why it's going wrong, I've attached the code showing the initial calling line and the 2 functions.

Calls Function launchSpecificBrowser get called with (CR, http://dummyurl, 30)
Opens Chrome with a blank page
Calls Function fWaitToExist with (<object>, 30)
Loops round 30 times as it doesn't see the browser existing
Exits the test

It's probably something simple, but I just can't see it.

Thanks
Brigna