Deleting defaults

5 posts, 0 answers
  1. darren
    darren avatar
    44 posts
    Member since:
    May 2011

    Posted 24 May 2011 Link to this post

    when recording I delete the default date from a date field and type a new date, when executing the test it simply adds the new date in the field alongside the default existing date, how can I ensure the date field is blank before entering a new date range?
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 24 May 2011 Link to this post

    Hello Darren,

    Was a step recorded that deletes the existing date? If not, try copying the step that sets a new date. Paste it and drag it above itself. Double click the new step and change the Text field to be blank. You can also try to enable "SimulateRealTyping" on both steps.

    To ensure the date field is blank before proceeding, insert a Verify or Wait step that checks if the content is blank before the date selection step. That process is outlined here.

    Regards,
    Anthony
    the Telerik team

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

  3. darren
    darren avatar
    44 posts
    Member since:
    May 2011

    Posted 25 May 2011 Link to this post

    The step was recorded, I have pasted and changed as you suggest and I have added waits but still it types the date along side the existing date and doesnt delete the date first. I have not tried simulate real typing as I have looked up how to but dont see how, please explain.
    My alternative is to click the date pop up and move through dates until I find the date I need but this is a very long process as I need to select 01/01/2007.
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 25 May 2011 Link to this post

    Hi darren,

    For changing a property of the step like SimulateRealUser/Typing please take a look at this article from the documentation.

    It seems you're automating some DatePicker component, is that correct? Can you please share with us if this is ASP.NET or Silverlight/WPF DatePicker? Also is that MS or Telerik (RadDatePicker) component? According to that we may be able to suggest some built-in method (in code) to help you achieve your goal.

    Kind regards,
    Konstantin Petkov
    the Telerik team

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

  5. darren
    darren avatar
    44 posts
    Member since:
    May 2011

    Posted 25 May 2011 Link to this post

    I can edit in Behavior to ClearBeforeTyping=True

    Thanks
Back to Top