Hi,
I'm encountering a problem with trying to click a HtmlInputButton that is enabled/disabled by a Javascript function controlled by another checkbox. Bascially my test first checks a checkbox, which uses some javascript which makes this button become enabled, and tries to click this button that was just enabled. I put a inspect DOM step right after my check checkbox step and before my find&click step and this is what the element looks like as seen by telerik:
What the page actually looks like when I inspect element using Firebug after the checkbox check event:
The coded step I'm trying to use to click this Element:
It appears that 1)Telerik is incorrectly seeing the disabled attribute for this button and/or 2)Telerik ignores the MouseClick() event on disabled element. Any guidance would be highly appreciated!
Thanks,
Daniel
I'm encountering a problem with trying to click a HtmlInputButton that is enabled/disabled by a Javascript function controlled by another checkbox. Bascially my test first checks a checkbox, which uses some javascript which makes this button become enabled, and tries to click this button that was just enabled. I put a inspect DOM step right after my check checkbox step and before my find&click step and this is what the element looks like as seen by telerik:
<
input
disabled
=
""
class
=
"ui-corner-all ui-button ui-widget ui-state-default ui-button-disabled ui-state-disabled"
id
=
"finish-page"
role
=
"button"
aria-disabled
=
"true"
type
=
"button"
value
=
"Finish Page"
>
What the page actually looks like when I inspect element using Firebug after the checkbox check event:
<
input
type
=
"button"
value
=
"Finish Page"
id
=
"finish-page"
class
=
"ui-corner-all ui-button ui-widget ui-state-default"
role
=
"button"
aria-disabled
=
"false"
>
The coded step I'm trying to use to click this Element:
System.Threading.Thread.Sleep(4000);
HtmlInputButton Finish_Page_Button = Find.ById<HtmlInputButton>(
"finish-page"
);
Finish_Page_Button.MouseClick();
It appears that 1)Telerik is incorrectly seeing the disabled attribute for this button and/or 2)Telerik ignores the MouseClick() event on disabled element. Any guidance would be highly appreciated!
Thanks,
Daniel