How to find RadButton by Content or tooltip

2 posts, 0 answers
  1. Olga
    Olga avatar
    6 posts
    Member since:
    Aug 2016

    Posted 29 Aug 2016 Link to this post


    i use telerik framework and visual studio 2015 to create automation tests for Silverlight application.

    On UI Page i have RadButton. But it does not have properties Name. How can i verify that this Button exists on page? 

    How i can find it?

    I try to do smth like this RadButton rButton = NMOapp.Find.......

    <telerik:RadButton Grid.Column="0"
     Command="{Binding ResetResultCommand, Mode=OneWay}"
     Content="{Binding ControlCaptions.ClearFields_Label, Source={StaticResource ResourceWrapper}}"
     ToolTipService.ToolTip="{Binding ControlCaptions.ClearPositionReportsSearchFields_Tooltip, Source={StaticResource ResourceWrapper}}" />

  2. Peshito
    Peshito avatar
    582 posts

    Posted 31 Aug 2016 Link to this post

    Hi Olga,

    Please take a look at this article in order to get started with Telerik Testing Framework.

    For example:
    RadButton button = app.Find.ByType<RadButton>();
    RadButton button = app.Find.ByName<RadButton>("<your_button_name");
    where app is a SilverlightApp instance.

    Hope this helps you get started.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top