Iterator Use

Ask general questions here.
Posts: 8
Joined: Tue Feb 19, 2019 7:44 am

Iterator Use

Post by samarthpukale » Wed Mar 06, 2019 2:37 pm

Hello Team,
I want to know how to use iterator(Advance for loop) in Ranorex and print the values one by one.

Samarth Pukale

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6553
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Iterator Use

Post by odklizec » Wed Mar 06, 2019 3:22 pm


Could you please describe in more details, what exactly you want to do and where you want to print the values you are looking for? Do you mean data connector (testcase/smartfolder) iteration number?
Last edited by odklizec on Wed Mar 06, 2019 8:29 pm, edited 1 time in total.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

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

Re: Iterator Use

Post by Support Team » Wed Mar 06, 2019 8:26 pm

Hi samarthpukale,

Perhaps you are looking for something similar to this users forum post? Here is a slight modification to print the attribute 'Text' values of each element:

Code: Select all

List<Element> myElements = new List<Element>();

foreach (var element in myElements)