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

Unable to click on "Tab" button thorugh code , in Telerik TestStudio

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rakhi
Top achievements
Rank 1
Rakhi asked on 22 Sep 2015, 06:24 AM

Hi,

I am developing automation Test scripts for a Web Application.Here I need to click on Tab button after entering value in a textbox (HtmlInputText type) .But , I have tried to record the step,but failed.It is not recorded.Can you please guide me that what I need to do , for performing this above operation?Please give me updates , as it is very urgent.

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 24 Sep 2015, 02:14 PM
Hello Rakhi,

Here is the code you need in order to press the Tab key:

Manager.Desktop.KeyBoard.KeyPress(Keys.Tab);

Please make sure you add the assembly reference to System.Windows.Forms as shown in this article.


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