Did anyone automate Telerik MVC Editor extension in WebAII?

2 posts, 0 answers
  1. Di
    Di avatar
    3 posts
    Member since:
    Apr 2011

    Posted 05 Sep 2011 Link to this post

    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!
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 06 Sep 2011 Link to this post

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