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

Problems on sending a keypress

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 01 Sep 2017, 03:47 PM

Hello,

 

I'm trying Telerik Test Studio and I stumble into this problem that I can't manage to pass through.

I want to send the key "ESC" as a keypress but it seems that Telerik Test Studio doesn't recognize the command because I'm not giving any control to it.

 

I'm coding my tests on Visual Studio using C# and Telerik test studio and the code that I'm trying to perform is something like this:

 

            Thread.Sleep(8000);
            System.Windows.Forms.SendKeys.Send("{ESC}");

 

But when I run the test, it fails, is there a specific way to send the keypress ESC?

 

Thanks for your help.

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 04 Sep 2017, 01:50 PM
Hello Jon,

Thank you for reaching us out. 

Please find some details here how to send keystrokes using the Progress Testing Framework. I hope this will be helpful to you. Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or