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

Text or Input Value Erased out

4 Answers 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nithya
Top achievements
Rank 1
Veteran
Nithya asked on 07 Aug 2017, 01:09 PM

Hi , 

I have a web application built in html5. I am trying to type some input values in one of the input fields..Initially I recorded the Step.

=> The Recorded step is like "KendoInput Value 500 entered" - When I give "Edit in Code " the step is like..

=> Pages.xxx.Span.TypeText ("500") 

Now, I run the step. It goes and enters the Value as "00" - 5 is not present.

 

Then I tried to edit the code as  Pages.xxx.Span.TypeText ("00500")  and run the step. Now I got the value 500 entered.

 

I am not sure, why the first 2 value are getting erased out..

 

Could anyone help me to find out the issue behind it..Thank you!!

Regards, 

Nithya A.

4 Answers, 1 is accepted

Sort by
0
Nikolai
Telerik team
answered on 09 Aug 2017, 09:26 AM
Hello Nithya,

This behavior may be due to the input control implementation. 

You can try to use desktop keyboard actions like this:
Pages.xxx.Span.MouseClick();
this.ActiveBrowser.Desktop.KeyBoard.TypeText("500");

Which should invoke the keyboard action directly.

Regards,
Nikolai
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nithya
Top achievements
Rank 1
Veteran
answered on 15 Aug 2017, 01:41 PM

Hi, 

this.ActiveBrowser.Desktop.KeyBoard.TypeText("500"); 

What is "this" here..? Is this a inbuilt function..?

 

I am getting the error as "this is not declared"

 

Regards, 

Nithya A.

0
Nikolai
Telerik team
answered on 16 Aug 2017, 02:09 PM
Hello Nithya,

"this" is a C# concept similar to "Me" in VB and in most cases you can delete it so the code will look like this:
Pages.xxx.Span.MouseClick();
ActiveBrowser.Desktop.KeyBoard.TypeText("500");

I hope this answer your query. 

 Regards,
Nikolai
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nithya
Top achievements
Rank 1
Veteran
answered on 03 Oct 2017, 01:43 PM
Thank you so much!! and sorry for late reply..
Tags
General Discussions
Asked by
Nithya
Top achievements
Rank 1
Veteran
Answers by
Nikolai
Telerik team
Nithya
Top achievements
Rank 1
Veteran
Share this question
or