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

Handle Dynamic Element ID

3 Answers 178 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Feb 2011, 12:07 PM
Hi,

I am trying to verify the contents of a Silverlight Element that has a dynamic ID.

e.g.

When the Silverlight application loads the element has an ID of February2011TextBlock, if I update the value of a certain element the id of the textblock will change, to, for example, March2011TextBlock.

How can I verify the value of the TextBlock after changing the value of the associated element?

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 04 Feb 2011, 03:15 PM
Hi David,
   Thank you for choosing to evaluate WebUI Test Studio!

Please check out this KB article:
http://www.telerik.com/automated-testing-tools/support/kb/test-automation/working-around-dynamiclly-generated-id-attributes.aspx

Let me know whether you need any further assistance!

Regards,
Stoichev
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Deepak
Top achievements
Rank 1
answered on 02 Feb 2012, 10:13 PM
Above KB artical link is not valid, through 404 error. do you have another link ?

thanks
Deepak
0
Cody
Telerik team
answered on 02 Feb 2012, 10:37 PM
Hi,

Yea we did some reorganizing of our documentation. Here's the new link:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/knowledge-base/test-automation/dynamically-generated-id-attributes.aspx 

Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Deepak
Top achievements
Rank 1
Cody
Telerik team
Share this question
or