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: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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
PathWeight.png (124.52 KiB) Viewed 768 times
, you could also add a condition in order to specify when the rule should be used.

Regards,
Markus
.
Image