{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7597","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7597/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7597/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7597/events","html_url":"https://github.com/appium/appium/issues/7597","id":197360336,"node_id":"MDU6SXNzdWUxOTczNjAzMzY=","number":7597,"title":"Appium Java client shows longPress duration in ms","user":{"login":"SatishKumarKV","id":22965310,"node_id":"MDQ6VXNlcjIyOTY1MzEw","avatar_url":"https://avatars2.githubusercontent.com/u/22965310?v=4","gravatar_id":"","url":"https://api.github.com/users/SatishKumarKV","html_url":"https://github.com/SatishKumarKV","followers_url":"https://api.github.com/users/SatishKumarKV/followers","following_url":"https://api.github.com/users/SatishKumarKV/following{/other_user}","gists_url":"https://api.github.com/users/SatishKumarKV/gists{/gist_id}","starred_url":"https://api.github.com/users/SatishKumarKV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatishKumarKV/subscriptions","organizations_url":"https://api.github.com/users/SatishKumarKV/orgs","repos_url":"https://api.github.com/users/SatishKumarKV/repos","events_url":"https://api.github.com/users/SatishKumarKV/events{/privacy}","received_events_url":"https://api.github.com/users/SatishKumarKV/received_events","type":"User","site_admin":false},"labels":[{"id":40639856,"node_id":"MDU6TGFiZWw0MDYzOTg1Ng==","url":"https://api.github.com/repos/appium/appium/labels/Documentation","name":"Documentation","color":"99ddaa","default":false}],"state":"closed","locked":false,"assignee":{"login":"dpgraham","id":852574,"node_id":"MDQ6VXNlcjg1MjU3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/852574?v=4","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},"assignees":[{"login":"dpgraham","id":852574,"node_id":"MDQ6VXNlcjg1MjU3NA==","avatar_url":"https://avatars2.githubusercontent.com/u/852574?v=4","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}],"milestone":{"url":"https://api.github.com/repos/appium/appium/milestones/36","html_url":"https://github.com/appium/appium/milestone/36","labels_url":"https://api.github.com/repos/appium/appium/milestones/36/labels","id":2447820,"node_id":"MDk6TWlsZXN0b25lMjQ0NzgyMA==","number":36,"title":"T-1000 [Sprint 10]","description":"","creator":{"login":"jlipps","id":605053,"node_id":"MDQ6VXNlcjYwNTA1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/605053?v=4","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":18,"state":"closed","created_at":"2017-04-10T17:04:21Z","updated_at":"2017-05-31T17:41:00Z","due_on":"2017-05-05T07:00:00Z","closed_at":"2017-05-31T17:41:00Z"},"comments":5,"created_at":"2016-12-23T12:16:33Z","updated_at":"2019-04-29T05:37:58Z","closed_at":"2017-04-12T16:50:03Z","author_association":"NONE","body":"## The problem\r\n\r\nLongPress not working with 1.6 Appium\r\n\r\nEDIT: The JavaDocs say that longPress delays are in 'milliseconds' (http://appium.github.io/java-client/) but in appium-xcuitest-driver it takes the value in seconds. We'll either need to update the documentation to say seconds or we need to update the appium-xcuitest-driver to accept values in milliseconds --DG\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.6\r\n* Last Appium version that did not exhibit the issue (if applicable):\r\n* Desktop OS/version used to run Appium:\r\n* Node.js version (unless using Appium.app|exe):\r\n* Mobile platform/version under test:\r\n* Real device or emulator/simulator:\r\n* Appium CLI or Appium.app|exe: CLI\r\n\r\n## Details\r\n\r\nLongPress not working with 1.6 Appium\r\n\r\n## Link to Appium logs\r\n\r\n**Logs for long press on element identified by name**\r\n`[HTTP] --> POST /wd/hub/session/2146c03a-c5fc-45ac-9378-8151e0517557/element {\"using\":\"name\",\"value\":\"dignity\"}\r\n[MJSONWP] Calling AppiumDriver.findElement() with args: [\"name\",\"dignity\",\"2146c03a-c5fc-45ac-9378-8151e0517557\"]\r\n[debug] [XCUITest] Executing command 'findElement'\r\n[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id\r\n[debug] [BaseDriver] Waiting up to 15000 ms for condition\r\n[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/3AB1197C-E5B9-41CC-AA06-6B66ED8B6E27/element] with body: {\"using\":\"name\",\"value\":\"dignity\"}\r\n[JSONWP Proxy] Got response with status 200: {\"value\":{\"ELEMENT\":\"162E9DA8-A474-4941-A2F8-A4529F37C2DD\",\"type\":\"XCUIElementTypeStaticText\",\"label\":\"dignity\"},\"sessionId\":\"3AB1197C-E5B9-41CC-AA06-6B66ED8B6E27\",\"status\":0}\r\n[MJSONWP] Responding to client with driver.findElement() result: {\"ELEMENT\":\"162E9DA8-A474-4941-A2F8-A4529F37C2DD\",\"type\":\"XCUIElementTypeStaticText\",\"label\":\"dignity\"}\r\n[HTTP] <-- POST /wd/hub/session/2146c03a-c5fc-45ac-9378-8151e0517557/element 200 630 ms - 178 \r\n[HTTP] --> POST /wd/hub/session/2146c03a-c5fc-45ac-9378-8151e0517557/touch/perform {\"actions\":[{\"action\":\"longPress\",\"options\":{\"element\":\"162E9DA8-A474-4941-A2F8-A4529F37C2DD\",\"duration\":3000}}]}\r\n[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{\"action\":\"longPress\",\"options\":{\"element\":\"162E9DA8-A474-4941-A2F8-A4529F37C2DD\",\"duration\":3000}}],\"2146c03a-c5fc-45ac-9378-8151e0517557\"]\r\n[debug] [XCUITest] Executing command 'performTouch'\r\n[JSONWP Proxy] Proxying [POST /uiaElement/162E9DA8-A474-4941-A2F8-A4529F37C2DD/touchAndHold] to [POST http://localhost:8100/session/3AB1197C-E5B9-41CC-AA06-6B66ED8B6E27/uiaElement/162E9DA8-A474-4941-A2F8-A4529F37C2DD/touchAndHold] with body: {\"duration\":3000}\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...\r\n[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...`\r\n\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\n**Code for long press**\r\n`TouchAction myAction = new TouchAction(IOSAppiumConnection.driver);\r\nmyAction.longPress(findBy(By.name(textToBeChecked), timeout) , 3000).perform().release();`\r\n\r\nAlso tried\r\n\r\n`TouchAction myAction = new TouchAction(IOSAppiumConnection.driver);\r\nmyAction.longPress(findBy(By.name(textToBeChecked), timeout) , 3000).perform();\r\nmyAction.release();`\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/487456405","html_url":"https://github.com/appium/appium/issues/7597#issuecomment-487456405","issue_url":"https://api.github.com/repos/appium/appium/issues/7597","id":487456405,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4NzQ1NjQwNQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-04-29T05:37:58Z","updated_at":"2019-04-29T05:37:58Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs."}}
{"actor":{"display_login":"lock"}}