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

Blind Keyboard Typing

2 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 10 Oct 2013, 09:07 PM
I'm having an issue invoking the blind keyboard typing.  I am unsure what reference assembly I need to add to the project in order for the coded step to work.  I have the code I need:

Manager.Desktop.KeyBoard.KeyPress(Keys.Insert, 200);

I am unsure as to the assembly reference however. I am not finding the one they are pointing to in this article:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/coded_steps/add-an-assembly-reference.aspx

I've downloaded and installed Windows SDK and .NET 4.0 from the link, and still I cannot find the reference (I did have .NET 4.5 already installed)

My directory structure looks like this:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\

Instead of the listed:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client


Neither the v3.5 folder or the v3.0 folder contains a "Profile" subfolder.

2 Answers, 1 is accepted

Sort by
0
Doug
Top achievements
Rank 1
answered on 11 Oct 2013, 04:11 PM
I found a solid solution:

You can use the System.Windows.Forms.Keys enumeration.

Manager.Desktop.KeyBoard.KeyPress(((System.Windows.Forms.Keys)(45)), 200);

Would indicate an insert keypress.  You don't actually need the assembly reference.  Different keys would see a number different than (45).
0
Ivaylo
Telerik team
answered on 14 Oct 2013, 03:24 PM
Hello Doug,

I am clad you managed to find the answer by yourself.

I am considering this as closed case, feel free to reopen it if needed.

Regards,
Ivaylo
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Doug
Top achievements
Rank 1
Answers by
Doug
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or