我试图在我面临的问题上找到正确的方向。 Appium Inspector 在 iOS 上将所有元素分组为一个整体,使其毫无用处,因为它无法选择特定元素。我在 Android 上没有看到这个问题。 Appium Inspector 能够选择单个元素进行自动化。我正在尝试寻找一些想法来查看代码以解决此问题。
这是一个 React Native 应用程序,用于编译 iOS 和 Android 版本。
请参阅下面的 iOS 和 Android 示例屏幕截图:
iOS 示例:
Android 示例:
I am trying to get pointed in the right direction on a issue I am facing. Appium Inspector is grouping all elements into 1 monolithic thing on iOS, rendering it useless as it cannot select specific elements. I am not seeing this issue on Android. Appium Inspector is able to select individual elements for automation. I am trying to get some ideas where to look in the code to fix this issue.
This is a react native app, being used to compile iOS and Android builds.
Please see screenshots below of both as an iOS and Android example:
iOS Example:
Android Example:
发布评论
评论(3)
这是此处提出的已知问题: https://github.com/appium/appium /issues/14825
列出的一种解决方法是在 Appium 设置中增加
snapshotMaxDepth
(默认情况下等于 50):This is a known problem that has been raised here: https://github.com/appium/appium/issues/14825
One workaround listed there is to increase
snapshotMaxDepth
in Appium settings (which is equal to 50 by default):我在某个特定元素上遇到了类似的问题:它的子元素与可访问性 ID、名称等一起集成到其父元素中。
在我的例子中,我使用的是 browserstack,问题来自他们这边。当我使用 iOS 模拟器在 Mac 上使用本地 Appium 服务器运行 appium 检查器时,一切正常
I had a similiar issue with a specific element: its child elements were integrated in their parent element along it accessibility id, name etc.
In my case, I was using browserstack and the problem were coming from their side. When I ran the appium inspector with a local Appium server on Mac with an ios simulator everything worked fine
尝试更改反应本机代码:
希望这对您有帮助
Try to change react native code:
Hope this helps you