Forum Discussion

underqualified's avatar
underqualified
Occasional Contributor
6 years ago
Solved

Iterating through items

Hey everybody, me again

 

This time, my issue is that I have to iterate through a series of objects.

The objects have objectID '0', '1', '2', and so on, but the amount of objects is not fixed.

 

What I tried is creating a Project Variable, and go for

      while(Aliases.browser.pageCockpit.frameUserMenu.panelIterative.Exists)
      {
        Aliases.browser.pageCockpit.frameUserMenu.panelIterative.Click(15, 20);
        Project.Variables.panelIterativeIdentifier++;
      }

And set the ObjectID identifier in namemapping to panelIterativeIdentifier as well.

It just doesn't work, it keeps going for the object with the ObjectID of 0. What am I doing wrong?

9 Replies