XBug
8 years agoContributor
While loop keeps on throwing an error
My while loop was setup as such: While (Object_A.VisibleOnScreen=True AND Object_B.VisibleOnScreen=False) { Delay = 2000ms, "Reloading..." } Note: Object_A appears before Object_B, they do ...
- 8 years ago
Hi,
You want to suppress the error when that object not exists in the screen since you are expecting object will get visible on the screen after some time.
If my understanding correct, before checking VisbleOnScreen you need to check the Exists property in-order to suppress the object not exists error in the TC logs.
Like below,
if(Object_A.Exists) { Object_A.VisbleOnScreen; }