Find element from XPATH (Appium 1.6.3, iOS 10)

Hi !

I’m using:
macOS Sierra 10.12
iPhone (real device) with iOS 10.1
Xcode 8.1
Appium 1.6.3

I’m search element with XPATH:

element_foud = driver.find_element(By.XPATH, value=“//0/0/0/0/0/0/0/0/0/4/2”)

I get XML with “driver.page_source”. This is example of XML:

XCUIElementTypeButton name=“” label=“Cerca” value=“” dom=“” enabled=“true” valid=“true” visible=“true” hint=“” path=“/0/0/0/0/0/0/0/0/0/4/2” x=“215” y=“20” width=“44” height=“44”

This is error message:

selenium.common.exceptions.NoSuchElementException: Message: An element could not be located on the page using the given search parameters.

Thank for help me :slight_smile: