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

How can I track RadButton with Ranorex.

1 Answer 111 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Pawel
Top achievements
Rank 1
Iron
Pawel asked on 05 Jun 2018, 03:23 PM

Hi all,

we have a problem with tracking buttons in our application after changing library (Nevron to Telerik).

Previously we did use (Nevron) in our WinForms application but now we are using RadButton (Telerik).

We had:
public partial class
{}

after the change, we have:
public partial class RadButton
{}

That was only changed in our code.

For automatically tests we are using Ranorex 8. After this change, we can not use this same test which we created before.

Is any solution how we do not need to change all Ranorex tests?

 

before in Ranorex was: "button[@controlname='NextButton']"

after: "container[@controlname='NextButton']

Please see attachments:

Thank you for any solution.

Br,

Pawel

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 08 Jun 2018, 07:12 AM
Hello Pawel,

I am glad to hear that you choose Telerik UI for WinForms suite for your project. In regards to your question, I have performed a sample test and you can access RadButton using an accessible name in Ranorex (please see attached image): 
container[@controlname='radGroupBox1']/?/?/button[@accessiblename='radButton1']

We have not tested Telerik UI for Winforms with Ranorex thus we cannot guarantee full compatibility. However, our controls support Microsoft Active Accessibility (MSAA), so you could find useful the following article from Ranorex`s documentation: Enabling automation for 3rd party controls by adding Accessibility

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Ralitsa
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Buttons
Asked by
Pawel
Top achievements
Rank 1
Iron
Answers by
Ralitsa
Telerik team
Share this question
or