Micro Focus QTP (UFT) Forums

Full Version: Code not recognising Browser object as existing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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