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

How to parameterize a textblock in WPF application

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shy
Top achievements
Rank 1
Shy asked on 06 Mar 2014, 11:35 AM
Hi

I am automating a WPF application developed using MVVM. In the application when the data grid displays list of rows, I am right clicking on particular row to open the sub menu.

Is their way to parameterize the right click event based on the text block content?

Thanks
Shysun

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 11 Mar 2014, 11:49 AM
Hi Shysun,

Thank you for contacting Telerik support.

This can be achieved by a data driven find expression. If your test has an attached data source, the value fields of the find expressions for your elements will include a drop-down list displaying columns from your data source. 

You can bind the text content find rule of the element to your data source. The click will be performed on the text block based on the content in the data source.

Please see this video for a demonstration.

Hope this helps.

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Shy
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or