Loop to click on button

Class library usage, coding and language questions.
Posts: 5
Joined: Thu Dec 13, 2012 6:47 pm

Loop to click on button

Post by nayara.crema » Thu May 02, 2013 2:51 pm


I have a situation where I have several files in a list to be eliminated through a delete button.
Of you would like help to set up a loop, where the Ranorex, click the "delete" button until no more button to be selected.
Attached is one print screen with the buttons "delete".
But it has a detail, when selecting the "delete" button is shown with a message "Delete the execution?" And must click OK, then this situation tbm should enter the loop.

I thank you.
Screens Listing
(81.19 KiB) Downloaded 192 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Loop to click on button

Post by Support Team » Fri May 03, 2013 3:32 pm


In general, it's simple to click on all buttons within a list using a loop.
You would need to find out the RanoreXPath of your delete buttons and perform a click.
Please take a look our User Guide for more information on RanoreXPath.

Could you please post or send us ([email protected]) a Ranorex Snapshot in order to assist you?
Please take a look at Creating Ranorex Snapshot Files in our User Guide.

Markus (T)