Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi Thomas,
Everybody can have different tasks. In your case, you can easily check whether the button is enabled and only after that click it:
var button = // obtain a button
if (button.WaitProperty("Enabled", true, 15000))
{
button.ClickButton();
}
The WaitProperty method will wait until value of the Enabled property becomes True or until the timeout is over.