Unable to find the element of type: radbutton

2 posts, 0 answers
  1. Andrey
    Andrey avatar
    3 posts
    Member since:
    Oct 2014

    Posted 22 Oct 2014 Link to this post

    Hi, I want to click the control with type "RadButton":

    string apppath = @"VisualDesigner.StandaloneApplication.exe";
    WpfApplication wpfApp = Manager.LaunchNewApplication(apppath);                           
    var xpathFieldEditor = wpfApp.MainWindow.Find.ByAutomationId("XPath _FieldEditor");
    var editBtn = xpathFieldEditor.Find.ByType("RadButton");


    And for "editBtn.User.Click();" I recieve the following exception for  - "An exception of type 'ArtOfTest.Common.Exceptions.FindElementException' occurred in ArtOfTest.WebAii.dll but was not handled in user code. Additional information: Unable to find the specified element: Unable to find the element of type: radbutton".

    Are there any methods to click this button?
  2. Boyan Boev
    Boyan Boev avatar
    1025 posts

    Posted 27 Oct 2014 Link to this post

    Hi Andrey,

    In order to assist you best please send us a screen shot of the DOM tree where this button is placed, so I can help you with the code.

    Looking forward to hearing from you.

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