Code not recognising Browser object as existing
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, The actual code is in the attachment showing the initial calling line and the 2 functions.
But basically does the following:
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.