Browser object is being viewed as not 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, 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
It's probably something simple, but I just cannot see it.
Try changing your function to create a Browser object and checking that:
Set obj = Browser("title:=.+")
bObj = fWaitToExist(obj, timeout)