Hi,
I use Selenium IDE 1.4.1 to test my website. This all works fine except for some specific Telerik input controls that are used. To be more specific, I cannot set values in the RadNumericTextBox (Telrik control) with Selenium IDE. Several topics are available where most of the time getEval with SetValue is proposed as a solution. However, none of the solutions work for me...Maybe somebody can put me on the right track?
The control in HTML looks like this:
<
td
class
=
"InputColumnField"
>
<
span
id
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_wrapper"
class
=
"RadInput RadInput_Windows7"
style
=
"white-space: nowrap;"
>
<
input
id
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_text"
class
=
"riTextBox riEnabled InputField"
type
=
"text"
style
=
"width:125px;"
name
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_text"
value
=
"1"
maxlength
=
"2147483647"
>
<
input
id
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0"
class
=
"rdfd_"
type
=
"text"
title
=
""
value
=
"1"
style
=
"visibility:hidden;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;"
>
<
input
id
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_Value"
class
=
"rdfd_"
type
=
"text"
title
=
""
value
=
"1"
name
=
"ctl00$body$Development_userControl$ctl00$ntb__Stage_duration_input__1__0__0"
style
=
"visibility:hidden;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;"
>
<
input
id
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_ClientState"
type
=
"hidden"
name
=
"ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_ClientState"
value
=
"{"
enabled":true,"emptyMessage":"","minValue":0,"maxValue":70368744177664}"
autocomplete
=
"off"
>
</
span
>
<
span
id
=
"ctl00_body_Development_userControl_ctl00_ctl08"
class
=
"validation"
style
=
"display:none;"
> Field is required.</
span
>
</
td
>
Proposed solution (in several threads):
<
tr
>
<
td
>getEval</
td
>
<
td
>this.page().getCurrentWindow()["ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_text"].SetValue(5);</
td
>
<
td
></
td
>
</
tr
>
My basic Selenium command:
<
tr
>
<
td
></
td
>
<
td
>id=ctl00_body_Development_userControl_ctl00_ntb__Stage_duration_input__1__0__0_text</
td
>
<
td
>2</
td
>
</
tr
>
This last option seems to put the value inside the textbox. However, this value is not saved. Also when you click on the control the "old" value shows up again (new value is removed).
Does somebody know the right commands and targets for Selenium IDE to deal with the RadNumericTextBox?
Thanks!