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 )
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.
Is your application a web application? If yes you would be able to see attributes as below.
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.
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.
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.