Forum Discussion
If you're using JScript or JavaScript, it is case sensitive. Make sure you're checking "Exists" not "exists". If that doesn't fix it, let us know.
As for try/catch... they don't catch object exists errors because they are not script coding errors. What I would do, though, is use browser.Terminate() in your try block to make sure, if it DOES exist, that you actually are closing the instance of chrome found initially in your WaitProcess.
Well, if there was a browser, it also went into the browser.exists clause, so exists or Exists apparently doesn't make a difference.
I could change the process.Terminate to browser.Terminate, but that as well shouldn't make a difference I guess? If there are 3 browsers open and he finds one but kills another, he simply loops till they are all gone. (around the code snippet, there is another loop)