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?
4 Answers, 1 is accepted
0
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
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 >>
0

darren
Top achievements
Rank 1
answered on 25 May 2011, 09:39 AM
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.
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.
0
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
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 >>
0

darren
Top achievements
Rank 1
answered on 25 May 2011, 10:54 AM
I can edit in Behavior to ClearBeforeTyping=True
Thanks
Thanks