{"action":"created","issue":{"url":"https://api.github.com/repos/appium/sample-code/issues/99","repository_url":"https://api.github.com/repos/appium/sample-code","labels_url":"https://api.github.com/repos/appium/sample-code/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/appium/sample-code/issues/99/comments","events_url":"https://api.github.com/repos/appium/sample-code/issues/99/events","html_url":"https://github.com/appium/sample-code/issues/99","id":178446367,"number":99,"title":"How properly scroll to Android element?","user":{"login":"pumano","id":17675259,"avatar_url":"https://avatars.githubusercontent.com/u/17675259?v=3","gravatar_id":"","url":"https://api.github.com/users/pumano","html_url":"https://github.com/pumano","followers_url":"https://api.github.com/users/pumano/followers","following_url":"https://api.github.com/users/pumano/following{/other_user}","gists_url":"https://api.github.com/users/pumano/gists{/gist_id}","starred_url":"https://api.github.com/users/pumano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pumano/subscriptions","organizations_url":"https://api.github.com/users/pumano/orgs","repos_url":"https://api.github.com/users/pumano/repos","events_url":"https://api.github.com/users/pumano/events{/privacy}","received_events_url":"https://api.github.com/users/pumano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T19:53:00Z","updated_at":"2016-09-21T20:37:09Z","closed_at":null,"body":"I have screen with elements not visible on screen. I need to scroll my screen for making that elements visible and accessible by Appium. I found tons of examples at internet, but I want to ask about better solution there too.\r\n\r\nCurrently works for me:\r\n\r\n`\r\nTouchAction action = new TouchAction(driver);\r\n        action.longPress(bottomElement).moveTo(topElement).release().perform();\r\n`\r\n\r\nHow do you solve scrolling to element?\r\n\r\nit's give me enough scrolling, but would be perfect to have native Appium method for scrolling to element: \r\n\r\n`scrollTo(MobileElement targetElement, ScrollDirection scrollDirectionEnum) ;`\r\n\r\nand that method will scroll until find element or reach end of available scrolling.\r\n"},"comment":{"url":"https://api.github.com/repos/appium/sample-code/issues/comments/248735274","html_url":"https://github.com/appium/sample-code/issues/99#issuecomment-248735274","issue_url":"https://api.github.com/repos/appium/sample-code/issues/99","id":248735274,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T20:37:09Z","updated_at":"2016-09-21T20:37:09Z","body":"The most reliable way is to use a little bit of UI Automator code.\r\n\r\nSee the final example here: https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/uiautomator_uiselector.md"}}
{"actor":{"display_login":"imurchie"}}