How can i know whether a textbox is Enabled or disabled ?

Oct 22, 2012 at 12:32 PM

I have a textbox in my application, but that textbox become disable in some conditions.

How can i know whether a textbox is Enabled or disabled in Runtime ?

Oct 23, 2012 at 7:40 AM

Hi

all UIItems have an enabled Flag that you can read.

 

TextBox box = parent.Get<TextBox>(SearchCriteria.ByAutomationId("id"));

if (box.Enabled)

{

   ....

}

 

Throndorin

 

Throndorin