Tracked Cell Text Showing Text From Different Cell

Best practices, code snippets for common functionality, examples, and guidelines.
karltinsly
Posts: 10
Joined: Tue Jun 07, 2016 9:59 pm

Tracked Cell Text Showing Text From Different Cell

Post by karltinsly » Tue May 15, 2018 8:15 pm

I am trying to select a cell in a table in a java application based on the text value. When I use the Track function on the cell, it reports the cell text incorrectly. It shows me the text from a different cell in the same column. I have tried sorting, refreshing, restarting both the application and ranorex, and the text attribute is still wrong for the cell.

Is there some trick to getting the correct text value for a cell?

I created a snapshot, but it's too big to upload, even zipped.

karltinsly
Posts: 10
Joined: Tue Jun 07, 2016 9:59 pm

Re: Tracked Cell Text Showing Text From Different Cell

Post by karltinsly » Tue May 15, 2018 10:18 pm

After a couple of hours of trial and error, I found that the text values were correct if the table is sorted ascending on the first column. I added two steps - one to sort on the second column, and then sort on the first column. This ensures that the first column is sorted ascending.

Now I can use the text attribute to find an validate my data.

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

Re: Tracked Cell Text Showing Text From Different Cell

Post by odklizec » Wed May 16, 2018 8:20 am

Hi,

I think this should not happen, no matter what sorting is used? Any chance you can post a sample app, showing this problem, so Ranorex devs could take a look at this? Or at very least a Ranorex snapshot. If it's too big, use public file sharing service (like onedrive or dropbox) and here post a link. Thanks.
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

karltinsly
Posts: 10
Joined: Tue Jun 07, 2016 9:59 pm

Re: Tracked Cell Text Showing Text From Different Cell

Post by karltinsly » Wed May 16, 2018 1:43 pm

I can't share the application - it is a hosted ERP solution at my work. It's a java swing application.

Here is the Ranorex snapshot, though.

https://www.dropbox.com/s/eokzbqkvbg5a7 ... rxsnp?dl=0

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Tracked Cell Text Showing Text From Different Cell

Post by Support Team » Thu May 17, 2018 7:45 am

Hello karltinsly,

Thank you for reporting your issue on the forum.
This behavior indeed is strange and we have not encountered it before. Therefore, we would like to analyze this behavior.

Could you create a ticket via our support query so that we can get in touch directly? You can find our support query under the following link: Ranorex Support

We are looking forward to your ticket.

Sincerely,
Tomaž
.
Image