Navigation of web app table using Ranorex TrTag & TdTag

Ask general questions here.
Posts: 15
Joined: Mon Apr 25, 2016 7:54 pm

Navigation of web app table using Ranorex TrTag & TdTag

Post by ninaddande » Fri Dec 23, 2016 11:31 pm

Hi Guys,

I have web application table which I would like to navigate to get all the data (td) collected in dictionary or list. I tried using Ranorex.TrTag & TdTag however it is not working. Xpath for the path goes like for ex.
and one row has multiple td's. I would like to use ranore tr & td tag to track this data. However at tbody level when I try to use children I can create IList<Ranorex.Unknown> and no other IList is allowed. And when I use FindChildren then also its not working with any combination.

Could you please guide me how to work with these. Actual Xpath till row is:

after tr there are multiple td's. Kindly guide me how to track td values.

Application type: Web Application.

Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Navigation of web app table using Ranorex TrTag & TdTag

Post by asdf » Tue Dec 27, 2016 3:00 pm

Hi Nina,

In order to archive your approach, you will have to create a UserCode module which handle this.
Therefore, please create a code module and add the following code snippet in this module.
IList<TdTag> list = Host.Local.Find<TdTag>(@".//div[#'ui-accordion-accordion-panel-0']/table/tbody/tr[1]/td");
foreach(var item in list)
     string tagValue = item.Element.GetAttributeValueText("TagValue");
Please insert the whole RxPath of your element in the "Find" method (including path of parent element), in order to find the elements faster.

I hope this helps.

Kind regards,