This is a migrated thread and some comments may be shown as answers.

Element Identification Failed

1 Answer 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 17 Mar 2011, 08:05 AM
Hi Team,
Im having the following error while executing one of my scripts.The object im trying to identify is a dynamically generated label in the application,please tell me how to fix this issue.
We are using webaii design canvas 1.1 as the recording tool.

This script is failed due to exception, please see N-Unit log file for error details.
System.Exception: Refresh() failed due to an unexpected exception. ---> ArtOfTest.WebAii.Exceptions.FindException: Find Details:
- Chained FindParams used, Params:
-- Param '0' = '[Find logic: Use 'AttributesOnly' where (id=mxprocessingListCtrlxmxgrdProcessingList_rc_0_0_3) ]'.
- Start Element: [Element: 'html:0']
- Search log during Find:
Searching for element starting at '[Element: 'html:0']' 
Using FindParam: 
 [Find logic: Use 'AttributesOnly' where (id=mxprocessingListCtrlxmxgrdProcessingList_rc_0_0_3) ]
Element was not found using the above FindParam. Returning null.
Search failed.



1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 21 Mar 2011, 06:48 PM
Hi Dev,

Since we don't have direct access to your application we can only give you guidelines for how you can figure out how ti fix this problem yourself. You will need determine what property is static about this dynamically generated label.

  • Is some portion of the ID static? Maybe we can count on the portion mxprocessingListCtrlxmxgrdProcessingList? If true we can use a partial match on the ID, assuming there are no duplicates in the DOM according to that portion.
  • Is the position static? If so we can use a fixed tag index.

If you can tell me how to reliably locate this dynamically generated label then I can help you create a find expression you can use. Without that information I can only take shots in the dark how to fix this.

All the best,
Cody
the Telerik team
Tags
General Discussions
Asked by
Dev
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or