This is a migrated thread and some comments may be shown as answers.

Example waiting for button to become enabled?

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 28 Mar 2011, 03:05 PM
Is there example anywhere of creating a step that wait for an html button to become enabled? I can only see visible tests in the quick start examples.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 29 Mar 2011, 02:21 AM
Hello Ryan,

Here is an example of a coded step that waits for the button having the id "Button1" to become enabled:

HtmlInputButton btn = Find.ById<HtmlInputButton>("Button1");
Wait.For<HtmlInputButton>(c => c.BaseElement.OuterMarkup.Contains("disabled"), btn, true, 10000);

Regards,
Cody
the Telerik team
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or