How to get staus bar

Jul 24, 2011 at 11:20 AM

I'm trying to read text in staus bar:

White.Core.UIItems.WindowStripControls.StatusStrip Status = window.Get<White.Core.UIItems.WindowStripControls.StatusStrip>(SearchCriteria.ByAutomationId("statusStrip1"));

Then i don't know how to get text.

This  Console.WriteLine(Status.Items[0].Text); doesn't work.

Regards.

Jul 24, 2011 at 3:07 PM

I'm getting  Status = null

White.Core.UIItems.WindowStripControls.StatusStrip Status = window.Get<White.Core.UIItems.WindowStripControls.StatusStrip>(SearchCriteria.ByAutomationId("statusStrip1"));

UISpy.exe shows me there is control StatusBar with AutomationId "statusStrip1"