{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7045","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7045/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7045/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7045/events","html_url":"https://github.com/appium/appium/issues/7045","id":183705962,"number":7045,"title":"Element selector gets rewritten even if it matches XCUI type","user":{"login":"tapisky","id":2797875,"avatar_url":"https://avatars.githubusercontent.com/u/2797875?v=3","gravatar_id":"","url":"https://api.github.com/users/tapisky","html_url":"https://github.com/tapisky","followers_url":"https://api.github.com/users/tapisky/followers","following_url":"https://api.github.com/users/tapisky/following{/other_user}","gists_url":"https://api.github.com/users/tapisky/gists{/gist_id}","starred_url":"https://api.github.com/users/tapisky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapisky/subscriptions","organizations_url":"https://api.github.com/users/tapisky/orgs","repos_url":"https://api.github.com/users/tapisky/repos","events_url":"https://api.github.com/users/tapisky/events{/privacy}","received_events_url":"https://api.github.com/users/tapisky/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-18T14:39:10Z","updated_at":"2016-11-04T01:25:03Z","closed_at":null,"body":"## The problem\n\nElement selector gets rewritten even if it matches XCUI type when using 'find_element' methods.\n## Environment\n- Appium version (or git revision) that exhibits the issue: Appium 1.6.0\n- Last Appium version that did not exhibit the issue (if applicable): N/A\n- Desktop OS/version used to run Appium: Mac OS El Capitan\n- Node.js version (unless using Appium.app|exe): 6.2.0\n- Mobile platform/version under test: iOS with OSX10\n- Real device or emulator/simulator: simulator\n- Appium CLI or Appium.app|exe: Appium CLI\n## Details\n\nN/A\n## Link to Appium logs\n\n`[MJSONWP] Calling AppiumDriver.findElement() with args: [\"xpath\",\"//XCUIElementType...\n[debug] [XCUITest] Executing command 'findElement'\n[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id\n[XCUITest] Rewrote incoming selector from '//XCUIElementTypeButton[@name='Convert']' to '//XCUIElementTypeButton[@name='Convert']' to match XCUI type. You should consider updating your tests to use the new selectors directly`\n## Code To Reproduce Issue [ Good To Have ]\n\nRuby:\nfind_element(xpath: \"//XCUIElementTypeButton[@name='Convert']\")\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/258321820","html_url":"https://github.com/appium/appium/issues/7045#issuecomment-258321820","issue_url":"https://api.github.com/repos/appium/appium/issues/7045","id":258321820,"user":{"login":"dpgraham","id":852574,"avatar_url":"https://avatars.githubusercontent.com/u/852574?v=3","gravatar_id":"","url":"https://api.github.com/users/dpgraham","html_url":"https://github.com/dpgraham","followers_url":"https://api.github.com/users/dpgraham/followers","following_url":"https://api.github.com/users/dpgraham/following{/other_user}","gists_url":"https://api.github.com/users/dpgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/dpgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpgraham/subscriptions","organizations_url":"https://api.github.com/users/dpgraham/orgs","repos_url":"https://api.github.com/users/dpgraham/repos","events_url":"https://api.github.com/users/dpgraham/events{/privacy}","received_events_url":"https://api.github.com/users/dpgraham/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T01:25:03Z","updated_at":"2016-11-04T01:25:03Z","body":"@imurchie Can I close this?"}}
{"actor":{"display_login":"dpgraham"}}