Forum Discussion
Marsha_R
Champion Level 3
8 years agoWell, it's looking because you told it to. Once you say If Visible, TC is going to hunt that box down and it either finds it or says sorry couldn't find it and gives up.
What I would do is give TC explicit instructions on what to do if it can't find the box. So, something like (I don't know your syntax so you will have to fix that)
if alertBox.Visible:
alertBox.Click("Yes")
else
log.message ("no alert box this time")