1

在 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'.
4

1 回答 1

0

使用 Ranorex Spy 跟踪 UI 元素并将其拖放到 Rx Studio 中的用户代码文件中。这样做,您将了解如何使用 Ranorex 访问此特定元素。

于 2018-11-23T08:16:52.720 回答