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

Copy and Paste Text box data

1 Answer 142 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pranavi
Top achievements
Rank 1
Pranavi asked on 14 Sep 2017, 01:39 PM

Hello,

   In my angular2 application, copying text from text box and pasting data in search text box through recorded step but it is not working. can you please help me.

here am attaching screen shot in that 22 and 26 steps are the recorded copy, paste steps.

 

Thanks,

Pranavi

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 19 Sep 2017, 07:38 AM
Hi Pranavi,

What is the action to copy - is it only to press on "C" key? If it is so you could try to use instead a key press step a coded step with this line of C# code:

ActiveBrowser.Manager.Desktop.KeyBoard.KeyPress(ArtOfTest.WebAii.Win32.KeyBoard.KeysFromString("C"), 150, 1);

The same approach could be used for the second - "paste" step but use "V" instead "C" in the coded line.

I hoe this would resolve the problem.

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