{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/python-client/issues/279","repository_url":"https://api.github.com/repos/appium/python-client","labels_url":"https://api.github.com/repos/appium/python-client/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/appium/python-client/issues/279/comments","events_url":"https://api.github.com/repos/appium/python-client/issues/279/events","html_url":"https://github.com/appium/python-client/issues/279","id":384531898,"node_id":"MDU6SXNzdWUzODQ1MzE4OTg=","number":279,"title":"Appium iOS Touch action from element to element works partially (scrolling only once)","user":{"login":"sumanthvakacharla","id":40371027,"node_id":"MDQ6VXNlcjQwMzcxMDI3","avatar_url":"https://avatars0.githubusercontent.com/u/40371027?v=4","gravatar_id":"","url":"https://api.github.com/users/sumanthvakacharla","html_url":"https://github.com/sumanthvakacharla","followers_url":"https://api.github.com/users/sumanthvakacharla/followers","following_url":"https://api.github.com/users/sumanthvakacharla/following{/other_user}","gists_url":"https://api.github.com/users/sumanthvakacharla/gists{/gist_id}","starred_url":"https://api.github.com/users/sumanthvakacharla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumanthvakacharla/subscriptions","organizations_url":"https://api.github.com/users/sumanthvakacharla/orgs","repos_url":"https://api.github.com/users/sumanthvakacharla/repos","events_url":"https://api.github.com/users/sumanthvakacharla/events{/privacy}","received_events_url":"https://api.github.com/users/sumanthvakacharla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T22:09:18Z","updated_at":"2018-11-26T22:09:18Z","closed_at":null,"author_association":"NONE","body":"## The problem\r\n\r\nTried to scroll down using Touch and release action from element to element in order to click on sign out button at the bottom. It scrolls only once, after that it throws the WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 \"The element '\"SettingsSignOutButton\" StaticText' is not visible on the screen and thus is not interactable\" UserInfo={NSLocalizedDescription=The element '\"SettingsSignOutButton\" StaticText' is not visible on the screen and thus is not interactable}\r\n\r\nBUT if we do not use touch action and just simply click on the sign out button object it successfully clicks but without scrolling down. It used to work for the previous appium and xcode, OS versions.\r\n\r\n\r\n## Environment\r\n- Current appium version : Appium desktop 1.8.2, Appium server 1.9.1 (Xcode 10.1, OS Mojave 10.14.1)\r\n- Last working Appium version  : 1.6.5\r\n- Desktop OS/version used to run Appium:(Xcode 9.4, OS High sierra 10.13.1)\r\n- Node.js version (unless using Appium.app|exe):11.1.0\r\n- Mobile platform/version under test:iPhone 7 plus - 11.3\r\n- Real device or emulator/simulator:Simulator\r\n- Appium CLI or Appium.app|exe: Appium.app\r\n\r\n## Details\r\n\r\nIf necessary, describe the problem you have been experiencing in more detail.\r\n\r\n## Link to Appium Logs\r\nhttps://gist.github.com/sumanthvakacharla/bc6be2e29344490a011e772ea2c03e6b\r\n\r\n\r\n## Code To reproduce issue\r\n\r\n        top_element = self.find_element_by_id(accessibilityStatic.Settings.SyncNow)\r\n        signOutButton = self.find_element_by_id(accessibilityStatic.Settings.SignOutButton)\r\n        # self.scroll_to(signOutButton, top_element)\r\n        # self.scroll_to(signOutButton)\r\n        try:\r\n            self.driver.scroll(top_element, signOutButton)\r\n        except Exception as e:\r\n#######\r\nBelow code is the webdriver provided code in the python client-0.31-> appium->webdriver\r\n#######\r\n# convenience method added to Appium (NOT Selenium 3)\r\n    def scroll(self, origin_el, destination_el, duration=None):\r\n        \"\"\"Scrolls from one element to another\r\n\r\n        :Args:\r\n         - originalEl - the element from which to being scrolling\r\n         - destinationEl - the element to scroll to\r\n         - duration - a duration after pressing originalEl and move the element to destinationEl. Default is 600 ms for W3C spec. Zero for MJSONWP.\r\n\r\n        :Usage:\r\n            driver.scroll(el1, el2)\r\n        \"\"\"\r\n\r\n        # XCUITest x W3C spec has no duration by default in server side\r\n        if self.w3c and duration is None:\r\n            duration = 600\r\n\r\n        action = TouchAction(self)\r\n        if duration is None:\r\n            action.press(origin_el).move_to(destination_el).release().perform()\r\n        else:\r\n            action.press(origin_el).wait(duration).move_to(destination_el).release().perform()\r\n        return self\r\n"}}
{"actor":{"display_login":"sumanthvakacharla"}}