sbkeenan
13 years agoFrequent Contributor
Changing the value of a Developer Express Date Picker control on a Web page
Hi
Has anyone successfully managed to change the value of a Developer Express date picker control on a web page? I have such a control that I need to be able to test and whilst I can obtain the current date value from it, I am unable to change it. The control currently allows a date to be keyed in directly, rather than using the dropdown to display a calendar. I have the control mapped to a variable named dteCtrl, so I have tried
I have also tried what methods I can find, as follows:
and
In some instances, I can see that the control is updated with the specified value, but when I move off the control, it reverts back to its original value.
I have also tried recording a script to see how TestComplete completes the action, but it uses the same setText method that I have already tried, so when I run the recorded script, I can again see that the value is changed, but when I move off the control, it reverts back.
I would be very grateful for any assistance that anyone can offer.
Regards
Stephen.
Has anyone successfully managed to change the value of a Developer Express date picker control on a web page? I have such a control that I need to be able to test and whilst I can obtain the current date value from it, I am unable to change it. The control currently allows a date to be keyed in directly, rather than using the dropdown to display a calendar. I have the control mapped to a variable named dteCtrl, so I have tried
dteCtrl.Text = "08/28/2013"
I have also tried what methods I can find, as follows:
call dteCtrl.setText("08/28/2013")
and
call dteCtrl.setAttribute("Value", "08/28/2013")
In some instances, I can see that the control is updated with the specified value, but when I move off the control, it reverts back to its original value.
I have also tried recording a script to see how TestComplete completes the action, but it uses the same setText method that I have already tried, so when I run the recorded script, I can again see that the value is changed, but when I move off the control, it reverts back.
I would be very grateful for any assistance that anyone can offer.
Regards
Stephen.