我试图找到一个表格行。首先,我使用了 Ranorex Spy,并尝试使用以下 rXpath 表达式:
/dom[@domain='127.0.0.1']//table//td[@innertext='john.doe@acme.com']/../following-sibling::tr/.[1]
Ranorex Spy 成功找到并突出显示此标签。但是当我尝试使用 Ranorex API 找到这个元素时,它没有返回任何结果。代码如下
// path is exactly rXpath expression which is used for Ranorex Spy
IList<Ranorex.Core.Element> elements = Host.Local.Find(path);
你能告诉我,我的错误在哪里或者rXpath有什么问题吗?