Getting uipath to loop though a menu by clicking

Hi,

Kinda new to UiPath. I’m trying to get UiPath to loop trough a menu, clicking the menu button once for each row, then go one step down and do it again.

Found out that the key locator for the menu is the ctrl idx=‘2’ However I cant find a way to loop throug it.

ctrl automationid=‘dockLayoutManager’ /<ctrl automationid=‘root’ /<ctrl automationid=‘LeftGrp’ /<ctrl automationid=‘dockItem1’ /<ctrl automationid=‘dataPresenter’ /<ctrl idx=‘2’ name=‘Work.List.Client.ViewModels.RowContainer’ role=‘list item’ /<ctrl automationid=‘C_4fab7931cea944d9af93f3e42f8987ec_S_’ /

@TOOKT

  1. You can use for each ui element activity and use the activities inside it
  2. Use a for loop with Enumerable.Range(0,numberoftimes).ToArray and change the type argument to integer and use currentitem variable inplace of idx

cheers

1 Like

HI @TOOKT

You can try with for each ui element activity

Regards
Sudharsan

1 Like

Well have checked I do not have for each ui element option, running modern version.

@TOOKT

It is a modern activity…it should be available unless your uiautomation packages are lond…Try upgrading them.

Also check activities → filters ->Show Modern

cheers

Dont really have that option kinda stuck on a older version and gotta wait until the company updates it.

However shouldn’t I be able to use Dynamic Selectors to rotated through the number series of the idx and then click?

@TOOKT

If tht is the case then use get children activity and then use a loop on the result that you get.

Or create a selector which you can change using idx and use in loop by changing idx

cheers

Solved this by looping throug a selector.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.