Assert if a row is selected in Telerk grid

2 posts, 0 answers
  1. SKN
    SKN avatar
    2 posts
    Member since:
    Apr 2013

    Posted 27 Jul Link to this post


    I need to test if a row is selected in a Telerk Grid using Telerik Test Framework. Below is the snippet of code I'm trying. 

      public bool HasRowSelected(IFrameworkElement row)
          return row.Find.ByName<Rectangle>("BackgroundBorder").Opacity > 0;

    However it doesn't seem to work. Could you please suggest how can I achieve this? Attached is the sample grid.

  2. Boyan Boev
    Boyan Boev avatar
    1026 posts

    Posted 01 Aug Link to this post


    As I understand if the row is selected then its opacity is bigger then 0? I am a right.

    Here is an example how you can verify a CSS style. You should first find the row and then verify the style (i.e. opacity).

    If you can grant me a direct access to the grid or create some example I can help you with the code.

    Thank you!

    Boyan Boev
    Telerik by Progress
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top