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

Masked Text Box Input Testing

3 Answers 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 14 May 2020, 04:10 PM
I am attempting to use the Telerik Testing Framework and would like to know how to input text into a Masked text box input during an automated test.

3 Answers, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 15 May 2020, 12:08 PM

Hello Tom,

Based on the information I have so far, I can say that Test Studio has support for RadMaskedTextBox control and has the necessary methods to input text. You need to reference our assembly "Telerik.WebAii.Controls.Html.dll" in your project. Please explore the API reference here

In case you want to automate actions against Windows Forms MaskedTextBox control, I have to tell you that this Windows Forms is not supported by out product.

I hope the above information is helpful to you. Please do not hesitate to contact us again, if you need further assistance or you have follow up questions.

Regards,
Plamen Mitrev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Tom
Top achievements
Rank 1
answered on 15 May 2020, 02:39 PM

Thank you for replying.  As part of this question, I should have asked was I am in the process of using the Free Testing Framework to write automation tests against our WPF Application.   As a part of this process, I need to read/retrieve a value from a Masked TextBox control.   When I try to retrieve the value, I only get the masked text and not the actual value the user has previously entered.

Could you share with me the best way to retrieve data back from a masked text box?

Thank you.

0
Plamen Mitrev
Telerik team
answered on 18 May 2020, 12:45 PM

Hi Tom,

Thank you for sharing additional details about the test scenario that you want to automate.

As I understand, you are using the WinForms control MaskedTextBox in a WPF application. The Telerik Testing Framework supports web and WPF applications. Since the MaskedTextBox is actually a WinForms control, I am sorry to tell you that it is not supported by the testing framework.

Thank you for your understanding and cooperation in this discussion.

Regards,
Plamen Mitrev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Tom
Top achievements
Rank 1
Share this question
or