Text or Input Value Erased out

5 posts, 0 answers
  1. Nithya
    Nithya avatar
    17 posts
    Member since:
    Aug 2016

    Posted 07 Aug Link to this post

    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.

  2. Nikolai
    Admin
    Nikolai avatar
    92 posts

    Posted 09 Aug Link to this post

    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!
  3. Nithya
    Nithya avatar
    17 posts
    Member since:
    Aug 2016

    Posted 15 Aug in reply to Nikolai Link to this post

    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.

  4. Nikolai
    Admin
    Nikolai avatar
    92 posts

    Posted 16 Aug Link to this post

    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!
  5. Nithya
    Nithya avatar
    17 posts
    Member since:
    Aug 2016

    Posted 03 Oct in reply to Nikolai Link to this post

    Thank you so much!! and sorry for late reply..
Back to Top