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

Did anyone automate Telerik MVC Editor extension in WebAII?

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Di
Top achievements
Rank 1
Di asked on 05 Sep 2011, 06:11 PM
Hi,
I'm trying to automate typing some text into Telerik Editor WYSIWYG (http://demos.telerik.com/aspnet-mvc/editor).
Can anyone give me advice how to enter text into <body> tags?
Thanks!

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Sep 2011, 08:28 PM
Hello Di,

You need to use a combination of TypeText, KeyPress, KeyDown and KeyUp method calls like this:

Manager.Desktop.KeyBoard.TypeText("Text to be typed", 10, 10);
Manager.Desktop.KeyBoard.KeyDown(System.Windows.Forms.Keys.Alt);
Manager.Desktop.KeyBoard.KeyPress(System.Windows.Forms.Keys.Down);
Manager.Desktop.KeyBoard.KeyUp(System.Windows.Forms.Keys.Alt);

All the best,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Di
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or