YUI Data Tables

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
JoeR
Posts: 32
Joined: Fri Dec 03, 2010 6:15 pm
Location: Morrisville, NC
Contact:

YUI Data Tables

Post by JoeR » Tue Feb 19, 2013 3:16 pm

Our website uses the YUI data tables. The issue is the the IDs for objects change each time the page is loaded. For example here are 2 paths for the same tr tag:

/dom[@domain='qa-auto.buildlinkslive.com']//tr[#'yui_3_5_1_6_1361283057095_586']
/dom[@domain='qa-auto.buildlinkslive.com']//tr[#'yui_3_5_1_6_1361282922595_585']

Does anyone have a suggestion as to how to deal with the unique IDs that change.

Joe

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

Re: YUI Data Tables

Post by Support Team » Wed Feb 20, 2013 12:23 pm

Hi,

In cases when the unique ID is not unique, which shouldn't be the case, you could manually use another attribute, like the "InnerText" in order to identify the cell uniquely or you could also disable the "search by unique ID" in the Settings window of Ranorex Spy.
If you disable it you have to add a new rule to the Path Weight Editor in order to prevent Ranorex from using the attribute ID for object identification.
Your rule could look similar to the following one:
PathWeight.png
, you could also add a condition in order to specify when the rule should be used.

Regards,
Markus
You do not have the required permissions to view the files attached to this post.