如何使用Coded UI Test Automation测试WPF Bing Maps?

时间:2016-05-16 21:09:37

标签: wpf bing-maps coded-ui-tests

我想做什么:

使用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();

0 个答案:

没有答案