Cannot get data point label text via UI Automation API

May 24, 2011 at 1:59 AM

I create a chart in winform via VS 2010 C# on Win7 and want to automated test the chart such as get the data from the chart.

First, I use UIAVerify tool to get the automation element. It could get all automation elements' information, such as chart's data point label. But I cannot get the data poine label automation element programmatically with .Net UIA library.

How could I get the automation element like UIAVerify? I found the AutomationElement in UIAVerify has more propertoes than the one in UIAutomationClient.dll.