It seems like this question is asked just about every week. From the help:
The Process method returns a Process object by its application name and index. If the process is not found, the method returns an empty object and adds the “Process not found” message to the test log. You can call Exists to determine whether the returned object is a process in the system. To obtain the process object without posting any messages to the test log, use Sys.WaitProcess or WaitChild.
FYI, it's not the Exists part that logs the error; it's the Process method. That method is intended to get a reference to a process that is known to exist. If you do not know the process exists, or if you need to wait until it does exist, you should use WaitProcess instead. That's what it's for. If you are disabling the log temporarily, you are doing it wrong.
Thanks everybody for posting this and making a discussion about it, very useful!
i am trying to make the following test :
if (Aliases["iexplore"]["Page"]("http: ...")["Panel(7)["Exists"])
When panel(7) exists it works perfectly but when it is not there i don't want to perform anything.After execution this it logs "unable to find object panel (7)".
if i add waitProcess thing shouldn't it log anything in the log? if yes please let me know how i will write it in the if statement. if i make the write process before or after the if statement it won't add me anything, does it??