# \[iOS react-native\] All the elements group into one element when using Appium Inspector

**URL:** <https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630>\
**Category:** Issues/Bugs\
**Created:** [June 19, 2022, 11:22am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630 "2022-06-19T11:22:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edwin\_Edwin](https://discuss.appium.io/user_avatar/discuss.appium.io/edwin_edwin/32/10198_2.png) [@Edwin\_Edwin](https://discuss.appium.io/u/Edwin_Edwin)\
**Post date:** [June 19, 2022, 11:22am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/1 "2022-06-19T11:22:00Z")

</div>

Situation: Appium Inspector is grouping all elements into 1 element on iOS. However, on Android, there is no issue given it is the same react-native build, and I am using real device for automation testing.

I have done my own research about why it will be like this, and I found the issue comes down to how the react-native app is written in code level. Most point to the “accessibility id” or “accessibility label”.

Also, there is a **limitation that I have no access to the source code of the app** , so I can only provide rather specific idea to app. team for changing the code to make it feasible in automation on iOS.

Question (1): I would like to ask is there any tips or insights about how to change the app. code specifically? Some posts mention about accessibility label or accessibility id, but how it should be changed, is there any reference reading or few line of codes that can facilitate the explanation to the app. team about how to change the code so that the automation can work on iOS?

Question (2): There may be difficulties about pushing the app. team to conduct the code change. Assuming that they don’t want to change the code, what is the workaround for capturing the label, text, name etc. of the elements that cannot be located properly with such situation on iOS?

My thought is first we need to capture the screenshot of the app’s UI that include the elements which cannot be located and captured its attributes, and then we can use the OCR technique to capture the word in the screenshots. It sounds possible and of course it is rather time-consuming if the issue can be easily solved by just changing the app. code…

For this worst scenario, what library or tool I should use that is integrated with Appium

My programming language is Python.

Finally, attached are the screenshots of both as an iOS and Android example for your reference:

Thank you for your time !!!

iOS example (indicated the issue):

 ![iOS%20example](https://discuss.appium.io/uploads/default/original/2X/8/805ee0dc792f0ac5cf44fbc7dba899a22d1eea4c.png)

Android example (it is working fine):

 ![Android%20example](https://discuss.appium.io/uploads/default/original/2X/2/2c6185ab01dfb0d646a142b1e600ae34febc2dfb.jpeg)

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [June 19, 2022, 5:03pm UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/2 "2022-06-19T17:03:04Z")

</div>

> [@Edwin\_Edwin](#):
>
> Question (1): I would like to ask is there any tips or insights about how to change the app. code specifically? Some posts mention about accessibility label or accessibility id, but how it should be changed, is there any reference reading or few line of codes that can facilitate the explanation to the app. team about how to change the code so that the automation can work on iOS?

Best advice is to ask the experts on this. There are forums and groups dedicated to React Native developers:

> **[Overview · React Native](https://reactnative.dev/community/overview)**
>
> The React Native Community

---

<div class="post-metadata">

**Author:** ![OGRC](https://discuss.appium.io/user_avatar/discuss.appium.io/ogrc/32/8181_2.png) [@OGRC](https://discuss.appium.io/u/OGRC)\
**Post date:** [August 3, 2022, 1:28pm UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/3 "2022-08-03T13:28:58Z")

</div>

Had the same issue on iOS but only when using browser stack services. My workaround was using a local emulator and it worked for a while only to happen again without me or the dev making any changes at all. Have you found a fix or at least a cause for why is this happening ?

---

<div class="post-metadata">

**Author:** ![OGRC](https://discuss.appium.io/user_avatar/discuss.appium.io/ogrc/32/8181_2.png) [@OGRC](https://discuss.appium.io/u/OGRC)\
**Post date:** [August 3, 2022, 1:35pm UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/4 "2022-08-03T13:35:45Z")

</div>

Also, I asked the dev to help me on this, so he added testids, accessibility ids, content desc, wrappers over elements, you name it but the appium inspector would still merge the elements into one big blob

---

<div class="post-metadata">

**Author:** ![Ed\_Snodgrass](https://discuss.appium.io/user_avatar/discuss.appium.io/ed_snodgrass/32/11062_2.png) [@Ed\_Snodgrass](https://discuss.appium.io/u/Ed_Snodgrass)\
**Post date:** [February 10, 2023, 7:10am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/5 "2023-02-10T07:10:28Z")

</div>

It’s unfortunate wreed is redirecting back to the React Native community on this. What is it about this that wreed expects it to be a react-native issue?

Is there anyone from Appium that could weigh in? I’m having the same issue where the Appium inspector does not show individual items in a list.

---

<div class="post-metadata">

**Author:** ![Joel](https://discuss.appium.io/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@Joel](https://discuss.appium.io/u/Joel)\
**Post date:** [July 26, 2023, 4:32pm UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/6 "2023-07-26T16:32:40Z")

</div>

@Edwin_Edwin Did you ever find a solution to this?

---

<div class="post-metadata">

**Author:** ![dids](https://discuss.appium.io/user_avatar/discuss.appium.io/dids/32/11653_2.png) [@dids](https://discuss.appium.io/u/dids)\
**Post date:** [November 3, 2023, 5:41am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/7 "2023-11-03T05:41:46Z")

</div>

did anyone find a solution? i also can’t find a solution for exposing all contents in iOS using react-native, suggested in here [37271](https://discuss.appium.io/t/i-cant-get-the-element-in-my-app-installed-on-ios-device-using-appium-inspector/37271/5)

This was my problem too months ago, but we skipped testing iOS first since it seems that there’s no solution for this.

Android UiAutomator works fine, it seems like XCUITest is the problem here

---

<div class="post-metadata">

**Author:** ![Mahyar\_Mohammadi](https://discuss.appium.io/user_avatar/discuss.appium.io/mahyar_mohammadi/32/12186_2.png) [@Mahyar\_Mohammadi](https://discuss.appium.io/u/Mahyar_Mohammadi)\
**Post date:** [November 29, 2023, 7:38am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/8 "2023-11-29T07:38:29Z")

</div>

Hi,  
We are facing the same issue that the Appium Inspector merges the components into one big component in iOS React-Native.  
Is there any update regarding the issue?

React-Native version: 0.72.6  
Appium Inspector version: 2023.11.1

---

<div class="post-metadata">

**Author:** ![Bulut\_Agirman](https://discuss.appium.io/user_avatar/discuss.appium.io/bulut_agirman/32/12982_2.png) [@Bulut\_Agirman](https://discuss.appium.io/u/Bulut_Agirman)\
**Post date:** [May 2, 2024, 6:29am UTC](https://discuss.appium.io/t/ios-react-native-all-the-elements-group-into-one-element-when-using-appium-inspector/36630/9 "2024-05-02T06:29:09Z")

</div>

You can try this solution. it solved my problem

> <https://stackoverflow.com/questions/71427100/appium-inspector-seeing-everything-as-one-big-element-for-ios/77272434#77272434>

And also;  
Github Issue :[Accessing page content when using deeply nested React Navigation navigators on iOS Using Appium · Issue #14825 · appium/appium · GitHub](https://github.com/appium/appium/issues/14825)

 ![Screenshot 2024-05-02 at 09.09.27](https://discuss.appium.io/uploads/default/original/2X/6/6de9283c497db533702cfcbccd18647f93d27f23.png)
