Issue with Desktop.Keyboard

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    2 posts
    Member since:
    Apr 2016

    Posted 09 Sep 2016 Link to this post


    Whever I use Desktop.Keyboard.Keypress, it tries to send the keys to Vidual Studio, instead of the browser being run by Manager.

    However, Desktop.Mouse.Click sends its events to the browser. Has anyone had the same issue?

    I tried paying with manager instances but it did not help:


    Manager.Current.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Tab, 1000);

    My mouse click code is:

    Instance.Desktop.Mouse.Click(MouseClickType.LeftClick, urlCell.GetRectangle());       

  2. Elena Tsvetkova
    Elena Tsvetkova avatar
    942 posts

    Posted 14 Sep 2016 Link to this post

    Hi Dmitry,

    The desktop actions are sent to the currently active element during the execution. Probably the active element before sending the key strokes is not the one you expect it to be. Since I was not able to reproduce the same behavior I would like to ask you for a short video demonstrating the issue and possibly a sample code (we recommend Jing as a free and easy to share online video recorder). 

    I hope to hear from you soon! 

    Elena Tsvetkova
    Telerik by Progress
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top