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

Unable to find the element of type: radbutton

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 22 Oct 2014, 07:52 AM
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");

editBtn.User.Click();


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?

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 27 Oct 2014, 07:34 AM
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.

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
Andrey
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or