Multiple click on dynamic selector

test

hi everyone, i need to ask about this topic.
how do i multiple clicks on the same element ?
as you can see the orange box is the dropdown element i want to click, but those element not an unique box and dynamic elements on the website.

i have do the single click using anchor to the right element ( the grey box ), but the greybox also dynamic, so if i play the automation in different days it won’t stick up the elements (alert missing elements)

so my questions is,
is it possible to perform multiple click on orange box 1 by 1 without the anchors ?

( because the dropdown menu is same elements also unique everytime )

Hello @Nur_Alif_Irawan ,

Are you trying to click on all the left button? Then what you can do is, using UI explorer inspect on any 2 buttons and cross check the slector. You should able to find some attributes like idx or rownum, which can be helpful here to dynamically pass through all the buttons and click.

yes, i want to click every dropdown menu

Then plz compare 2 buttons using UI explorer and put the screenshot here

gimme a moments

the compare look like this,
i have notice the DIV element have different value,
the 49 and 50

Dont you find any other attributes which gives the rownumber. Usually the tableRow should change or idx will be there.

Can you inspect again and add other elements and check whether some other attributes can be used here.

what is rownumber looks like,
would you give an examples ?

Is your application a web application? If yes you would be able to see attributes as below.

image

image

This can change with the application and the development.So what you can do is inspect on an element and in the UI explorer check the attributes in the Property Explorer.

do you mean like this ?
i have no idea the tablerow is unselected item, how it supposed to be?

can you scroll down here and see if theres a tablerow property
image

In the property explorer I can see the tablerow and tablecol… So if you scroll down you should be able to view that.

Also if you are still not able to find it, in the selector editor choose other selectors and check whether you are able to some other attributes.

you can also try this @Nur_Alif_Irawan

use find children activity and select whole table

set scope = FIND_DESCENDANTS
set filter =
"<webctrl class='x-grid-cell-inner x-grid-cell-inner-row-expander' />"
image

then use foreach activity to loop the results


use click inside foreach, set element = child


i have an error on for each, the misc properties lot missing than your pictures

children should be output of find children activity, and should be variable with type = ienumerable

you can click the output field and press ctrl+k to set variable
image

Hello @Nur_Alif_Irawan

In the previous selector you can enable tablerow also to selector by selecting it from selected items.

Then use a while loop (i<10) where id an int with default value as 1
Inside the while use a click activity to click on the first button but you need to make it dynamic by passing tablerow=i.

Then do other action, then use an
element exists/app state activity and check for next button tablerow=i+1 ( inside while loop only)
Add a if condition, if element exists add a delay. ELSE USE BREAK ACTIVITY.

i find the tablerow, so what should i do now ?

Hello @Nur_Alif_Irawan ,

If you found it then you need to make it dynamic to click on each button.So as i suggested below you can create a workflow.

Use a while loop (i<10) where i is an int variable with default value as 1
Inside the while use a click activity to click on the first button but you need to make it dynamic by passing tablerow=i .

Then do other action, then use an
element exists/app state activity and check for next button tablerow=i+1 ( inside while loop only)
Add a if condition, if element exists add a delay. ELSE USE BREAK ACTIVITY.