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

Problem setting a text

3 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shiva
Top achievements
Rank 1
Shiva asked on 27 Jun 2014, 02:31 PM
Hi,

I'm having a small problem writing the name of a plan in web-based application.

The UI, identification and step is http://prntscr.com/3x19lb

The Code behind recording is: Actions.SetText(Pages.RedOwlPlanning.PlanNameText0, "Automated Test"); 

This is very unusual, should be acting same as when writing a username

Thank you,
Shiva

3 Answers, 1 is accepted

Sort by
0
Miguel
Top achievements
Rank 1
answered on 27 Jun 2014, 03:06 PM
Hi Shiva,
I would suggest using keyboard emulation instead of attempting to set the text:
Pages.RedOwlPlanning.PlanNameText0.Focus();
​Manager.Desktop.KeyBoard.TypeText("Automated Test", 50, 100, true);
0
Shiva
Top achievements
Rank 1
answered on 27 Jun 2014, 03:10 PM
Hi Miguel, 

Thank you for the post.
It somehow started to work when i added an extra step 'Desktop command left click on planNameText()' before writing
But the tips seems handy for the future. 

Thank you,
Shiva
0
Ivaylo
Telerik team
answered on 02 Jul 2014, 11:49 AM
Hello Shiva,

Please excuse me for the delayed reply.  
I am happy to see you have worked it out.

@Miguel: Thank you for assisting in forums. I have updated your telerik points accordingly.

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