Hello
in the photo attache you can see 5 buttons with the same name and when u click on the button u get the window as it shows in the picture.
what i want to do is to let UiPath click on each one of them (one by one) and there is unknown number of theses buttons so its changeable.
So it will start clicking on the first button and then the second and so on until there are no buttons
your help will be very appreciated
thank you in advance
I would suggest an alternate safer method of clicking one by one if you do not need to verify its order (like first to last or last to first)
You can use the find children activity and âfilterâ (<webctrl class='btn'/>) it according to the button class (use get descendants in the property panel of the find children and loop)
Once you get the elements in collection only the filtered IEnum. collection (UiPath.Core.UiElement) you can use click activity by passing the âitemâ from the for each to the click activity - (ctype((item),uipath.core.uielement) and use it however you please.
You need to inspect the element and see what attribute it is and what tag it is. âclassâ was just an example, it can just be a tag or something else too. Maybe you can paste the page source and the selector of the button then we can take a look. It is fairly easy. You can also check out the following link Search results for 'find children user:raghavendraprasad' - UiPath Community Forum for all find children answers where I have demonstrated the filtering and other aspects of looping through⌠-
Another Simple way, <webctrl aaname='Detailii' idx='1'> for first button <webctrl aaname='Detailii' idx='2'> for second button <webctrl aaname='Detailii' idx='3'> for third button
.
.
. <webctrl aaname='Detailii' idx='n'> for nth button
But please ensure you the element exist before clicking the button