How to parameterize a textblock in WPF application

2 posts, 0 answers
  1. Shy
    Shy avatar
    3 posts
    Member since:
    Feb 2014

    Posted 06 Mar 2014 Link to this post


    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?

  2. Boyan Boev
    Boyan Boev avatar
    1025 posts

    Posted 11 Mar 2014 Link to this post

    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.

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top