While loop seems to be ignored when looking for a menu bar
Hello again. I am at the end of the first week of my 2 week trial and I cannot get my test to run successfully. I am trying to click an icon on a menu bar that displays after my application opens. Sometimes it takes a while for the UI to display fully and TestComplete fails before all windows and menus are visible.
I tried to employ a while loop based on an example I found in the documentation. It worked the first time but failed every time when I tried to run the test thereafter. Can anyone tell what I am missing or doing wrong? Images are attached.
TiA - Astrid
You're checking the property value of VisibleOnScreen, of the object Main, which probably doesn't exist yet. You want to check if the Object exists first. Also, ensure the name mapping defined for the object is correct too. If Main fails to find, then try it's parent object, Ribbon.
See Waiting for an Object, Process or Window Activation.