This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 5
Apr 2017

I'm running appium 1.6.3 on an iOS 10.2 device.

Using this inspector:

I can see this for the menu item I'd like to click on (Note: the Value is not defined):
Type: XCUIElementTypeOther
Accessibility Id: Show Settings
Value:
Label: Show Settings
Is Visible: true

In the xpath selector, I'm unable to find an xpath query that locates this element. These all do not work:

//XCUIElementTypeOther[@name="Show Settings"]
//XCUIElementTypeOther[@label="Show Settings"]
//*[@name="Show Settings"]
//*[@label="Show Settings"]

Am I missing something here?

  • created

    Apr '17
  • last reply

    Apr '17
  • 4

    replies

  • 1.6k

    views

  • 2

    users

  • 1

    link

Use the below xpath and try locating the element,

//*[text()='Show Settings']

Thanks

Have you tried with contains() for xPath?

If not use "//*[contains(@label,'Show Settings')]"

That gets me a lot closer, it finds 9 elements including the one I want. I just need to find something unique about mine. Thanks for the help!