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
YUI Data Tables
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: YUI Data Tables
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: , you could also add a condition in order to specify when the rule should be used.
Regards,
Markus
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: , 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.