Problems on sending a keypress

2 posts, 0 answers
  1. Jon
    Jon avatar
    1 posts
    Member since:
    Sep 2017

    Posted 01 Sep 2017 Link to this post

    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.

  2. Elena Tsvetkova
    Admin
    Elena Tsvetkova avatar
    939 posts

    Posted 04 Sep 2017 Link to this post

    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
     
Back to Top