Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法通过C#代码使用Ranorex测试自动化工具识别DevExpress GridControl_C#_Wpf_Devexpress_Automated Tests_Ranorex - Fatal编程技术网

无法通过C#代码使用Ranorex测试自动化工具识别DevExpress GridControl

无法通过C#代码使用Ranorex测试自动化工具识别DevExpress GridControl,c#,wpf,devexpress,automated-tests,ranorex,C#,Wpf,Devexpress,Automated Tests,Ranorex,在Visual Studio 2013中,我正在使用Ranorex工具引用为WPF应用程序编写带有C#代码的测试自动化方法:我无法识别WPF应用程序中的DevExpress GridControl,也无法检索其属性(网格数据(行和列))。有人能帮忙吗 var devExgrid = form.FindSingle<RanorexDataGrid>(".//element[@automationid='dg_UserOrders']"); var-devExgrid=form.Fin

在Visual Studio 2013中,我正在使用Ranorex工具引用为WPF应用程序编写带有C#代码的测试自动化方法:我无法识别WPF应用程序中的DevExpress GridControl,也无法检索其属性(网格数据(行和列))。有人能帮忙吗

var devExgrid = form.FindSingle<RanorexDataGrid>(".//element[@automationid='dg_UserOrders']");
var-devExgrid=form.FindSingle(“.//元素[@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'.
类型“Ranorex.Controls.RanorexDataGrid”不能用作泛型类型或方法“Ranorex.Adapter.FindSingle(Ranorex.Core.RxPath)”中的类型参数“T”。没有从“Ranorex.Controls.RanorexDataGrid”到“Ranorex.Adapter”的隐式引用转换。

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

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

我试图理解什么是RanorexDataGrid,但在文档中找不到有关此类型的任何信息。我建议在网格项目上使用Ranorex spy,将其添加到存储库中,并查看Ranorex用于表示它的适配器类型(在生成的代码中)。我试图理解什么是RanorexDataGrid,但在文档中找不到有关此类型的任何信息。我建议在网格项目上使用Ranorex spy,将其添加到存储库中,并查看Ranorex用于表示它的适配器类型(在生成的代码中)。