Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appium Inspector seeing everything as one big element for iOS

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: enter image description here

Android Example: enter image description here

like image 281
adbarads Avatar asked Oct 31 '25 06:10

adbarads


2 Answers

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):

"appium:settings[snapshotMaxDepth]": 70
like image 124
abdulla Avatar answered Nov 01 '25 23:11

abdulla


Try to change react native code:

  1. <TouchableOpacity accessible={false}>
  2. <Stack.Navigator mode={'modal'}>

Hope this helps you

like image 20
Александр Ваганов Avatar answered Nov 01 '25 21:11

Александр Ваганов



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!