Copy and Paste Text box data

2 posts, 0 answers
  1. Pranavi
    Pranavi avatar
    20 posts
    Member since:
    Sep 2013

    Posted 14 Sep 2017 Link to this post


       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.




  2. Nikolay Petrov
    Nikolay Petrov avatar
    308 posts

    Posted 19 Sep 2017 Link to this post

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