1

我正在通过 Appium + Winapp 驱动程序自动化 UWP 应用程序(Windows 10)。

我正在使用 Appium 检查器来监视 Windows 10 应用程序中的对象。该按钮没有可用的名称,因此尝试使用 Xpath

/Window/Window[2]/Button[2]

我尝试单击 Appium 检查器中的点击按钮,它正在单击按钮名称。

如果我在我的 selenium 代码中使用 XPath,如下所示,它不起作用:

driver.findElementByXPath("//Window[2]/Button[2]").click();

您能否让我知道为什么脚本无法Button在 Appium 检查员可以单击它的同时单击它。

我的环境是:

  • Appium 版本 - 1.9.1
  • WinApp 版本 - 1.1
  • Java 客户端 - 6.1
  • 操作系统 - Windows 10
4

0 回答 0