How to clear Auto Text in Text Box?

6 posts, 0 answers
  1. Prince M. Premnath
    Prince M. Premnath avatar
    32 posts
    Member since:
    Oct 2009

    Posted 17 Jun 2011 Link to this post

    Hello ,

     I am using Telerik Test Studio QA edition ..I found the tool working good in recording.. and data operated test too ..
    But i struck up with a case ..

     My Application do contains some text box with default texts .. but in a plain testing or in a data driven testing .. it simply appends the text what i intended to enter in there . instead of clearing the text and enter the new values ..

    how can i do this ??

    Please respond me ASAP

    Thanks
    Prince

  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 20 Jun 2011 Link to this post

    Hello Prince,

    Please highlight the step that inputs the text and go to the Properties pane. Under the Behavior heading there is a setting called ClearBeforeTyping. Set this to True. Upon execution, the default text will be cleared before typing the new input.

    Regards,
    Anthony
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Ankit
    Ankit avatar
    4 posts
    Member since:
    Feb 2013

    Posted 23 May 2013 Link to this post

    Hi I dindn't see an option of ClearBeforeTyping setting under Behavior
  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 27 May 2013 Link to this post

    Hello Ankit,

    The property you are looking for is available for particular control, if you are testing html application for example this is not available. However you can proceed by editing the test step. Here is a sample video demonstrating on how you can proceed.
    Another way to clear the text in text box before you start typing the new text is to use a sample coded step as the one shown below:

    Actions.SetText(Find.ByName("firstname"), "");

    Hope this helps.

    Regards,
    Ivaylo
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. PP
    PP avatar
    7 posts
    Member since:
    Apr 2013

    Posted 02 Jun 2013 Link to this post

    Hi Ankit,

    I was also facing the same issue while working with a silverlight application.
    What I tried is changing the SimulateRealUser property to false in the properties tab for that specific step and it works for me.

    I am not sure what exactly is its purpose but, I would suggest, give it a try.

    Regards,
    Prerna
  6. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 03 Jun 2013 Link to this post

    Hello Prerna,

    Thank you for interjecting into this thread and sharing your experience.

    Regards,
    Ivaylo
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!