使用Coded UI Test Automation来断言有关WPF应用程序的Bing Map的功能。具体来说,我需要找到已经添加到Bing Map的图钉的名称和坐标。 Bing Map with custom pushpin
我已经引用了https://msdn.microsoft.com/en-us/library/hh750210.aspx来处理WPF Bing地图,但它只针对开发重点。
我还尝试使用以下代码查找WPF自定义控件(bing map)的所有子控件。
WpfCustom mapView = uiMap.UIMapView.UIMap;
UITestControlCollection mapChildren = mapView.GetChildren();