【发布时间】:2022-01-12 10:52:22
【问题描述】:
Uiautomator 无法识别元素。我需要单击以蓝色突出显示的按钮(如图所示)。有人可以帮助我如何单击突出显示的按钮。当我使用 Uiautomator.. 捕获 XMl 时,应用程序没有为该按钮提取 xml 源
【问题讨论】:
-
请附上xml
标签: mobile automation appium appium-android
Uiautomator 无法识别元素。我需要单击以蓝色突出显示的按钮(如图所示)。有人可以帮助我如何单击突出显示的按钮。当我使用 Uiautomator.. 捕获 XMl 时,应用程序没有为该按钮提取 xml 源
【问题讨论】:
标签: mobile automation appium appium-android
如果您无法使用 uiautomator 查看器获取 xml 层次结构,您可以使用appium inspector 获取被测应用程序的 xml 布局。
【讨论】: