[Appium 1] Not able to locate element in ios

Hi All.
I am trying to click on element using id property in real iphone device but it is giving me no such element error. It works fine in android

Not sure why this error is coming and how to fix it

Can someone help to fix . Attaching screenshot and appium logs




appium-server-logs.txt (146.0 KB)

What is in page source? How this button looks like?
some example:

<XCUIElementTypeButton type="XCUIElementTypeButton" enabled="true" visible="true" x="56" y="464" width="338" height="24" name="generated_Label" label="Have the latest version of the Some app">

@Aleksei It looks like this .
Actually same code/function works fine for android not sure why it is not finding object for ios
So I think must be some issue with ios objects or the way we are using locators to find object in ios?
I am using drvier as iOSAutomationName = XCUITest


Here it is

<XCUIElementTypeWindow type="XCUIElementTypeWindow" enabled="true" visible="true" accessible="false" x="0" y="0" width="393" height="852" index="0">
  <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" accessible="false" x="0" y="0" width="393" height="852" index="0">
    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" accessible="false" x="0" y="0" width="393" height="852" index="0">
      <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" accessible="false" x="0" y="0" width="393" height="852" index="0">
        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
          <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
            <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
              <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                  <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                    <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                      <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                          <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="103" index="0"/>
                          <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="1">
                            <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                              <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                  <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                    <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                      <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                          <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                            <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                              <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                  <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="103" index="0"/>
                                                  <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="1">
                                                    <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                      <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="852" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="840" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="103" index="0"/>
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="1">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" label="btn_header_profile Home btn_header_profile Pick up where you left off Horizontal scroll bar, 1 page Vertical scroll bar, 1 page" enabled="true" visible="false" accessible="false" x="0" y="0" width="393" height="761" index="0"/>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" name="btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="761" width="393" height="79" index="1">
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" value="tab list" name="btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" label="btn_function toLowerCase() { [native code] } btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="false" x="0" y="761" width="393" height="50" index="0">
                                                        <XCUIElementTypeButton type="XCUIElementTypeButton" value="1" name="btn_function toLowerCase() { [native code] }" label="btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="true" x="0" y="761" width="197" height="50" index="0"/>
                                                        <XCUIElementTypeButton type="XCUIElementTypeButton" name="btn_function toLowerCase() { [native code] }" label="btn_function toLowerCase() { [native code] }" enabled="true" visible="false" accessible="true" x="196" y="761" width="197" height="50" index="1"/>
                                                        </XCUIElementTypeOther>
                                                        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="false" accessible="false" x="0" y="761" width="393" height="80" index="1"/>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                        </XCUIElementTypeOther>
                                                      </XCUIElementTypeOther>
                                                    </XCUIElementTypeOther>
                                                  </XCUIElementTypeOther>
                                                </XCUIElementTypeOther>
                                              </XCUIElementTypeOther>
                                            </XCUIElementTypeOther>
                                          </XCUIElementTypeOther>
                                        </XCUIElementTypeOther>
                                      </XCUIElementTypeOther>
                                    </XCUIElementTypeOther>
                                  </XCUIElementTypeOther>
                                </XCUIElementTypeOther>
                              </XCUIElementTypeOther>
                            </XCUIElementTypeOther>
                          </XCUIElementTypeOther>
                        </XCUIElementTypeOther>
                      </XCUIElementTypeOther>
                    </XCUIElementTypeOther>
                  </XCUIElementTypeOther>
                </XCUIElementTypeOther>
              </XCUIElementTypeOther>
            </XCUIElementTypeOther>
          </XCUIElementTypeOther>
        </XCUIElementTypeOther>
        <XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" accessible="false" x="0" y="0" width="393" height="852" index="1"/>
      </XCUIElementTypeOther>
    </XCUIElementTypeOther>
  </XCUIElementTypeOther>
</XCUIElementTypeWindow>
  1. Your code looks correct.
  2. Your appium version v1.22.3 not. Too old.
  3. Where is in your page source value you trying to find? I see only btn_header_profile plus long text. Possibly it is hidden in inspector as far as too long…


@Aleksei I am trying to click on this object

I didn’t understand by this line “hidden in inspector”
How can I overcome this problem in case if it is hidden in inspector ?Please advise

I dont know why in inspector it shown differently. In page source you need find element with name=“btn_header_profile”. Can you find such?

@Aleksei Yeah looks like everywhere it is "btn_header_profile +some text "
I couldn’t find only this string “btn_header_profile” :frowning_face:
I think I might need to ask engineer to fix the object property?
Or is there any other way to find this kind of object?

Yes! Cause only app developer can fix it.

Do you know what element in page source is yours?

Thanks @Aleksei for helping. Let me check with developer first and see if they can fix it on their end