How to click in several similar items knowing they are not in a table

Hello. I have to click in several similar items. However, the activity ‘Find Children’ doesn’t work in this case and the items I would like to click aren’t items in a table. So, I tried to click with ‘CV Click’ activity, ‘Ui Click’ activity and other activities. But, none of these attempts worked. I was wondering to click the items based on the coordinates, but isn’t a very reliable method. What should I do?

Hi @Arthur_Ribeiro_Henrique

When you say elements are similar, do you mean their selector is same?

When you explore their selectors using ui explorer, what difference do you find?

Try to find attributes that are different in these elements.

Or may be there is a pattern.

Once you are able to identify, we can customize the selector accordingly.

Or when you tried cv click, what do you think failed in there?

Are you able to show us some selectors and descriptors to help find the solution.

It would be even helpful if you are able to show screenshot of those elements on the screen.

Hello @sonaliaggarwal47 ! Yes, sure, I will show the selectors: The selectors repeat a pattern, that is: <ctrl name='Text I am searching for' role='text'>.

In this way, just the text inside of this tag changes when I select the other items. When I tried to use the CV Click, actually, I made it, but, one of the items has a collapsable list that, when is clicked, the other CV Clicks click the items that are inside this new list.

But, writing in a nutshell, the CV Click works, but not in the way it should. And, returning to the selectors, they have the same pattern, also, in the outer structure: they are wrapped inside a tiny list in Ui Explorer.

Hi @Arthur_Ribeiro_Henrique

So when you make this text a variable and let the elements get selected on basis in text inside it, does it not work?

The text that is theee in these selectors, is it known before hand or is it dynamic?

Also, for CV selectors also, you can make dynamic descriptors. For eg if this collapsible list position is always same or if its text is always same then, you can have its cv descriptor defined accordingly. Which expands the list and then other cv click activity actually click on the item inside this list.

Hello again @sonaliaggarwal47 . I checked here and your idea of selectors is amazing! I used the activity find children and put all my selector tree tag inside of the ‘selector’ field, except the targets, and it validated. And, in the filter I put my targets, that follow the same pattern. I’ll check if I can, now, click in the elements.

1 Like

Hi @Arthur_Ribeiro_Henrique

Glad to hear it helped.

Are you now able to click on the elements?