Question: 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](https://i.stack.imgur.com/XONws.png)](https://i.stack.imgur.com/XONws.png)

**Android Example:**
[![enter image description here](https://i.stack.imgur.com/8ut65.png)](https://i.stack.imgur.com/8ut65.png)

Answer: 
After many tries towards the wrong direction I found the line of code that worked for me. In the override of the `OnElementChanged` method in the `Custom Webview Renderer` this is the code that makes the opening of links with `target=_blank` attribute possible:

`Control.Settings.SetSupportMultipleWindows(false);`

`SetSupportMultipleWindows;` should be set to ***false***, not to ***true*** as it has been suggested.
You could add support for multiple windows in **OnElementChanged** of **Hybrid renderer** with code:

```
Control.Settings.SetSupportMultipleWindows(true);

```

edit:

```
public class MyWebViewRenderer : WebViewRenderer
    {
        public MyWebViewRenderer(Context context) : base(context)
        {
        }

        protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.WebView> e)
        {
            base.OnElementChanged(e);

            if(Control!=null)
            {
                Control.Settings.SetSupportMultipleWindows(true);
                Control.Settings.JavaScriptEnabled = true;
                Control.SetWebChromeClient(new MyWebChromeClient());
            }

        }

    }

    public class MyWebChromeClient: WebChromeClient
    {
        public override bool OnCreateWindow(Android.Webkit.WebView view, bool isDialog, bool isUserGesture, Message resultMsg)
        {

            if(!isDialog)
            {
                return true;
            }

            return base.OnCreateWindow(view, isDialog, isUserGesture, resultMsg);
        }
    }

}

```