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

Element Identification Logic for WPF

1 Answer 22 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arthur Hefti
Top achievements
Rank 1
Arthur Hefti asked on 03 Nov 2013, 07:02 PM
Hi

In our WPF application most of the elements for entering data have no "name" attribute (using binding). Test Studio creates names like e.g. Item1Textbox. The problem is that Test Studio doesn't detect/create the same name every time. As soon as we have some changes or use the application from the build server tests fail because of this.

In HTML we have the possibility to define the identification logic but WPF doesn't allow this customization. Having e.g. the attribute Text would be good option.

Any ideas how we can overcome this?

Thanks
Arthur

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 07 Nov 2013, 09:11 AM
Hello Arthur,

Thank you for contacting us.

This is expected behavior, if the attributes that you are using in the find logic change when you use another build. To overcome this you should use static attributes in you find logic or only the static part of the dynamics attributes.

You can change that logic absolutely in the same way as in HTML. Here is an article about it.

Also you can check out this article.

Hope this helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Arthur Hefti
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or