{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5460","labels_url":"https://api.github.com/repos/appium/appium/issues/5460/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5460/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5460/events","html_url":"https://github.com/appium/appium/issues/5460","id":98685028,"number":5460,"title":"WebElement.findElement() does not work for native iOS Apps with any locator strategy","user":{"login":"abhivaikar","id":1690028,"avatar_url":"https://avatars.githubusercontent.com/u/1690028?v=3","gravatar_id":"","url":"https://api.github.com/users/abhivaikar","html_url":"https://github.com/abhivaikar","followers_url":"https://api.github.com/users/abhivaikar/followers","following_url":"https://api.github.com/users/abhivaikar/following{/other_user}","gists_url":"https://api.github.com/users/abhivaikar/gists{/gist_id}","starred_url":"https://api.github.com/users/abhivaikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhivaikar/subscriptions","organizations_url":"https://api.github.com/users/abhivaikar/orgs","repos_url":"https://api.github.com/users/abhivaikar/repos","events_url":"https://api.github.com/users/abhivaikar/events{/privacy}","received_events_url":"https://api.github.com/users/abhivaikar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/OnGoing","name":"OnGoing","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T07:05:09Z","updated_at":"2015-08-03T09:46:25Z","closed_at":null,"body":"I am trying to find an element inside a webelement and it's not working from automation code as well as from Appium Inspector\r\n\r\n**Setup:**\r\n1. Appium 1.4.8\r\n2. XCode 6.3.2\r\n3. iOS Simulator: iPhone with iOS 8.3\r\n4. App: Native iOS App\r\n\r\n**Locating strategies tried:** Xpath, name, class, ios uiautomation\r\n\r\nElement hierarchy is as in the image:\r\n<img width=\"721\" alt=\"screen shot 2015-08-03 at 12 18 04 pm\" src=\"https://cloud.githubusercontent.com/assets/1690028/9032196/af4aebde-39d9-11e5-8833-4381a5a3d496.png\">\r\n\r\n\r\n**My automation code is as below:**\r\n```Java\r\nWebElement itemElement = driver.findElements(MobileBy.IosUIAutomation(\"UIATarget.localTarget().frontMostApp().mainWindow().collectionViews()[0].cells().withPredicate(\\\"name == 'id_itemSummaryView'\\\")\").get(0);//This will return a single element out of 4 elements\r\nitemElement.findElement(MobileBy.name(\"id_itemSummaryView\")) //throws error\r\n```\r\n\r\nOR\r\n```Java\r\nitemElement.findElement(MobileBy.IosUIAutomation(\"elements()[0]\")); //throws error\r\n```\r\n\r\nEven from Appium Inspector, I set \"Search from Selected Element\" and try finding the element. Doesn't work.\r\nAm I doing something wrong here? Or is this a bug in Appium?"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/127179581","html_url":"https://github.com/appium/appium/issues/5460#issuecomment-127179581","issue_url":"https://api.github.com/repos/appium/appium/issues/5460","id":127179581,"user":{"login":"abhivaikar","id":1690028,"avatar_url":"https://avatars.githubusercontent.com/u/1690028?v=3","gravatar_id":"","url":"https://api.github.com/users/abhivaikar","html_url":"https://github.com/abhivaikar","followers_url":"https://api.github.com/users/abhivaikar/followers","following_url":"https://api.github.com/users/abhivaikar/following{/other_user}","gists_url":"https://api.github.com/users/abhivaikar/gists{/gist_id}","starred_url":"https://api.github.com/users/abhivaikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhivaikar/subscriptions","organizations_url":"https://api.github.com/users/abhivaikar/orgs","repos_url":"https://api.github.com/users/abhivaikar/repos","events_url":"https://api.github.com/users/abhivaikar/events{/privacy}","received_events_url":"https://api.github.com/users/abhivaikar/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T09:46:25Z","updated_at":"2015-08-03T09:46:25Z","body":"Yes. Tried. Changed the context to NATIVE_APP didn't help."}}