Forum Discussion

Astrid's avatar
Astrid
Occasional Contributor
2 years ago

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. So...
  • rraghvani's avatar
    2 years ago

    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