Skip to content

Instantly share code, notes, and snippets.

@vikramvi
Created July 5, 2017 14:46
Show Gist options
  • Select an option

  • Save vikramvi/0c74febe02c7332f3969bfcfca3055c9 to your computer and use it in GitHub Desktop.

Select an option

Save vikramvi/0c74febe02c7332f3969bfcfca3055c9 to your computer and use it in GitHub Desktop.
predicate identifier is not working in case first element XCUIElementTypeApplication
[HTTP] <-- POST /wd/hub/session/f1e2c3ec-2aa7-44b8-ab7b-644e5d41b6a9/element 200 134 ms - 196
[HTTP] --> POST /wd/hub/session/f1e2c3ec-2aa7-44b8-ab7b-644e5d41b6a9/element {"using":"-ios predicate string","value":"name == 'WordPress'"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["-ios predicate string","name == 'WordPress'","f1e2c3ec-2aa7-44b8-ab7b-644e5d41b6a9"]
[debug] [XCUITest] Executing command 'findElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/7F6E9E2A-6E76-41F6-AA59-FA9F360A6721/element] with body: {"using":"predicate string","value":"name == 'WordPress'"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"using":"predicate string","value":"name == 'WordPress'","description":"unable to find an element"},"sessionId":"7F6E9E2A-6E76-41F6-AA59-FA9F360A6721","status":7}
[HTTP] <-- POST /wd/hub/session/f1e2c3ec-2aa7-44b8-ab7b-644e5d41b6a9/element 500 95 ms - 164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment