在 Visual Studio 2013 中,我正在使用 Ranorex 工具参考为 WPF 应用程序编写带有 C# 代码的测试自动化方法:我无法识别位于 WPF 应用程序中的 DevExpress GridControl 并且无法检索其属性(网格数据(行和列))。有人可以帮忙吗。
var devExgrid = form.FindSingle<RanorexDataGrid>(".//element[@automationid='dg_UserOrders']");
错误:
The type 'Ranorex.Controls.RanorexDataGrid' cannot be used as type parameter 'T' in the generic type or method 'Ranorex.Adapter.FindSingle<T>(Ranorex.Core.RxPath)'. There is no implicit reference conversion from 'Ranorex.Controls.RanorexDataGrid' to 'Ranorex.Adapter'.