{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7135","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7135/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7135/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7135/events","html_url":"https://github.com/appium/appium/issues/7135","id":186358608,"number":7135,"title":"iOS10.1/java client  4.1.2 /Appium1.6 -beta3  swipe does not work ","user":{"login":"bearxc","id":7198439,"avatar_url":"https://avatars.githubusercontent.com/u/7198439?v=3","gravatar_id":"","url":"https://api.github.com/users/bearxc","html_url":"https://github.com/bearxc","followers_url":"https://api.github.com/users/bearxc/followers","following_url":"https://api.github.com/users/bearxc/following{/other_user}","gists_url":"https://api.github.com/users/bearxc/gists{/gist_id}","starred_url":"https://api.github.com/users/bearxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bearxc/subscriptions","organizations_url":"https://api.github.com/users/bearxc/orgs","repos_url":"https://api.github.com/users/bearxc/repos","events_url":"https://api.github.com/users/bearxc/events{/privacy}","received_events_url":"https://api.github.com/users/bearxc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T18:20:16Z","updated_at":"2016-10-31T18:20:16Z","closed_at":null,"body":"Try to swipe element from right to left , and it turns out  as click instead of swipe . \r\n\r\nint leftX = element.getLocation().getX();\r\n int centerX = element.getLocation().getX() + (element.getSize().getWidth() / 2);\r\n int centerY = element.getLocation().getY() + (element.getSize().getHeight() / 2);\r\n Context.driver.swipe(centerX, centerY, leftX, centerY, 100);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nHTTP] --> GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location {}\r\n[MJSONWP] Calling AppiumDriver.getLocation() with args: [\"59EAFAE9-6C52-4589-B3AF-36076C64221A\",\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'getLocation'\r\n[JSONWP Proxy] Proxying [GET /element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] to [GET http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] with no body\r\n[JSONWP Proxy] Got response with status 200: \"{\\n  \\\"value\\\" : {\\n    \\\"y\\\" : 119,\\n    \\\"x\\\" : 0,\\n    \\\"width\\\" : 375,\\n    \\\"height\\\" : 83\\n  },\\n  \\\"sessionId\\\" : \\\"62F9630F-9C47-4A62-AF32-AADE40F86049\\\",\\n  \\\"status\\\" : 0\\n}\"\r\n[MJSONWP] Responding to client with driver.getLocation() result: {\"x\":0,\"y\":119}\r\n[HTTP] <-- GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location 200 160 ms - 87 \r\n[HTTP] --> GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location {}\r\n[MJSONWP] Calling AppiumDriver.getLocation() with args: [\"59EAFAE9-6C52-4589-B3AF-36076C64221A\",\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'getLocation'\r\n[JSONWP Proxy] Proxying [GET /element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] to [GET http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] with no body\r\n[JSONWP Proxy] Got response with status 200: \"{\\n  \\\"value\\\" : {\\n    \\\"y\\\" : 119,\\n    \\\"x\\\" : 0,\\n    \\\"width\\\" : 375,\\n    \\\"height\\\" : 83\\n  },\\n  \\\"sessionId\\\" : \\\"62F9630F-9C47-4A62-AF32-AADE40F86049\\\",\\n  \\\"status\\\" : 0\\n}\"\r\n[MJSONWP] Responding to client with driver.getLocation() result: {\"x\":0,\"y\":119}\r\n[HTTP] <-- GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location 200 154 ms - 87 \r\n[HTTP] --> GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/size {}\r\n[MJSONWP] Calling AppiumDriver.getSize() with args: [\"59EAFAE9-6C52-4589-B3AF-36076C64221A\",\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'getSize'\r\n[JSONWP Proxy] Proxying [GET /element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] to [GET http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] with no body\r\n[JSONWP Proxy] Got response with status 200: \"{\\n  \\\"value\\\" : {\\n    \\\"y\\\" : 119,\\n    \\\"x\\\" : 0,\\n    \\\"width\\\" : 375,\\n    \\\"height\\\" : 83\\n  },\\n  \\\"sessionId\\\" : \\\"62F9630F-9C47-4A62-AF32-AADE40F86049\\\",\\n  \\\"status\\\" : 0\\n}\"\r\n[MJSONWP] Responding to client with driver.getSize() result: {\"width\":375,\"height\":83}\r\n[HTTP] <-- GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/size 200 156 ms - 97 \r\n[HTTP] --> GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location {}\r\n[MJSONWP] Calling AppiumDriver.getLocation() with args: [\"59EAFAE9-6C52-4589-B3AF-36076C64221A\",\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'getLocation'\r\n[JSONWP Proxy] Proxying [GET /element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] to [GET http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] with no body\r\n[JSONWP Proxy] Got response with status 200: \"{\\n  \\\"value\\\" : {\\n    \\\"y\\\" : 119,\\n    \\\"x\\\" : 0,\\n    \\\"width\\\" : 375,\\n    \\\"height\\\" : 83\\n  },\\n  \\\"sessionId\\\" : \\\"62F9630F-9C47-4A62-AF32-AADE40F86049\\\",\\n  \\\"status\\\" : 0\\n}\"\r\n[MJSONWP] Responding to client with driver.getLocation() result: {\"x\":0,\"y\":119}\r\n[HTTP] <-- GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/location 200 147 ms - 87 \r\n[HTTP] --> GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/size {}\r\n[MJSONWP] Calling AppiumDriver.getSize() with args: [\"59EAFAE9-6C52-4589-B3AF-36076C64221A\",\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'getSize'\r\n[JSONWP Proxy] Proxying [GET /element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] to [GET http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/rect] with no body\r\n[JSONWP Proxy] Got response with status 200: \"{\\n  \\\"value\\\" : {\\n    \\\"y\\\" : 119,\\n    \\\"x\\\" : 0,\\n    \\\"width\\\" : 375,\\n    \\\"height\\\" : 83\\n  },\\n  \\\"sessionId\\\" : \\\"62F9630F-9C47-4A62-AF32-AADE40F86049\\\",\\n  \\\"status\\\" : 0\\n}\"\r\n[MJSONWP] Responding to client with driver.getSize() result: {\"width\":375,\"height\":83}\r\n[HTTP] <-- GET /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/element/59EAFAE9-6C52-4589-B3AF-36076C64221A/size 200 150 ms - 97 \r\n\r\n[HTTP] --> POST /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/touch/perform {\"actions\":[{\"action\":\"press\",\"options\":{\"x\":187,\"y\":160}},{\"action\":\"wait\",\"options\":{\"ms\":100}},{\"action\":\"moveTo\",\"options\":{\"x\":-187,\"y\":0}},{\"action\":\"release\",\"options\":{}}]}\r\n[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{\"action\":\"press\",\"options\":{\"x\":187,\"y\":160}},{\"action\":\"wait\",\"options\":{\"ms\":100}},{\"action\":\"moveTo\",\"options\":{\"x\":-187,\"y\":0}},{\"action\":\"release\",\"options\":{}}],\"c1c41ed9-0958-4491-b910-9ea879b4ae96\"]\r\n[debug] [XCUITest] Executing command 'performTouch'\r\n[JSONWP Proxy] Proxying [POST /uiaTarget/0/dragfromtoforduration] to [POST http://localhost:8100/session/62F9630F-9C47-4A62-AF32-AADE40F86049/uiaTarget/0/dragfromtoforduration] with body: {\"fromX\":187,\"fromY\":160,\"toX\":0,\"toY\":160,\"duration\":0.1}\r\n[JSONWP Proxy] Got response with status 200: {\"value\":{},\"sessionId\":\"62F9630F-9C47-4A62-AF32-AADE40F86049\",\"status\":0}\r\n[MJSONWP] Responding to client with driver.performTouch() result: {}\r\n[HTTP] <-- POST /wd/hub/session/c1c41ed9-0958-4491-b910-9ea879b4ae96/touch/perform 200 1738 ms - 74 \r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"bearxc"}}