gpt4 book ai didi

ios - Appium Inspector 未找到 iOS native 应用程序中的所有元素

转载 作者:行者123 更新时间:2023-11-29 02:34:33 24 4
gpt4 key购买 nike

我正在尝试在运行 native 应用程序的真实 iOS 设备上使用 Appium 1.2.2 Inspector,但我无法获得页面的完整源代码。基本上我的应用程序正在显示一个身份验证屏幕,但 Appium Inspector 仅检测到 2 个 UIAWindows,第一个包含与状态栏相关的所有元素,但第二个(实际应用程序窗口)仅包含一个 UIAElement。

我尝试使用 C# 驱动程序检索页面源,这就是服务器返回的内容(基本上是我所描述的,2 个窗口,其中一个窗口中的状态栏元素,另一个窗口中的单个 UIAElement) :

<?xml version="1.0" encoding="UTF-8"?>
<AppiumAUT>
<UIAApplication name="App" label="App" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0" x="0" y="20" width="320" height="460">
<UIAWindow name="" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0" x="0" y="0" width="320" height="480">
<UIAElement name="" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/0" x="0" y="0" width="320" height="568">
</UIAElement>
</UIAWindow>
<UIAWindow name="" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/1" x="0" y="0" width="320" height="480">
<UIAStatusBar name="" label="" value="" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/1/0" x="0" y="0" width="320" height="20">
<UIAElement name="Réseau indisp." label="Réseau indisp." value="" dom="" enabled="true" valid="true" visible="true" hint="Balayez l’écran vers le bas avec trois doigts pour afficher le centre de notifications., Balayer vers le haut avec trois doigts pour afficher le centre de contrôle, Touchez deux fois l’écran pour faire défiler vers le haut" path="/0/1/0/0" x="6" y="0" width="83" height="20">
</UIAElement>
<UIAElement name="3 sur 3 barres Wi-Fi" label="3 sur 3 barres Wi-Fi" value="Wifi" dom="" enabled="true" valid="true" visible="true" hint="Balayez l’écran vers le bas avec trois doigts pour afficher le centre de notifications., Balayer vers le haut avec trois doigts pour afficher le centre de contrôle, Touchez deux fois l’écran pour faire défiler vers le haut" path="/0/1/0/1" x="94" y="0" width="13" height="20">
</UIAElement>
<UIAElement name="5:52 PM" label="5:52 PM" value="" dom="" enabled="true" valid="true" visible="true" hint="Balayez l’écran vers le bas avec trois doigts pour afficher le centre de notifications., Balayer vers le haut avec trois doigts pour afficher le centre de contrôle, Touchez deux fois l’écran pour faire défiler vers le haut" path="/0/1/0/2" x="137" y="0" width="47" height="20">
</UIAElement>
<UIAElement name="Charge de la batterie : 100%, Alimentation en courant alternatif" label="Charge de la batterie : 100%, Alimentation en courant alternatif" value="" dom="" enabled="true" valid="true" visible="true" hint="Balayez l’écran vers le bas avec trois doigts pour afficher le centre de notifications., Balayer vers le haut avec trois doigts pour afficher le centre de contrôle, Touchez deux fois l’écran pour faire défiler vers le haut" path="/0/1/0/3" x="282" y="0" width="33" height="20">
</UIAElement>
</UIAStatusBar>
</UIAWindow>
</UIAApplication>
</AppiumAUT>

我错过了什么吗?

此外,我想尝试使用 Appium 1.3,但是使用 .dmg 安装 appium 后如何更新它?

编辑:我忘记了一个细节:我使用 Reveal 应用程序,它能够检测所有元素(所以这实际上是一个 appium 检查器和/或服务器错误)

Edit2:我注意到的另一件事是,检查员正确地使用了另一个应用程序。

最佳答案

我的应用程序也遇到了类似的问题。它有被 Appium 检测为 UIAElements 的工具提示,但我们的开发人员说它们有文本。我猜当使用某些方式显示元素时会发生这种情况,例如iOS绘图库。我必须通过选择没有名称的 UIAElement 来解决这个问题。

关于ios - Appium Inspector 未找到 iOS native 应用程序中的所有元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26507927/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com