{"action":"created","issue":{"url":"https://api.github.com/repos/appium/java-client/issues/1092","repository_url":"https://api.github.com/repos/appium/java-client","labels_url":"https://api.github.com/repos/appium/java-client/issues/1092/labels{/name}","comments_url":"https://api.github.com/repos/appium/java-client/issues/1092/comments","events_url":"https://api.github.com/repos/appium/java-client/issues/1092/events","html_url":"https://github.com/appium/java-client/issues/1092","id":402125040,"node_id":"MDU6SXNzdWU0MDIxMjUwNDA=","number":1092,"title":"TouchActions throws java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen exception","user":{"login":"dokmetas","id":11345785,"node_id":"MDQ6VXNlcjExMzQ1Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/11345785?v=4","gravatar_id":"","url":"https://api.github.com/users/dokmetas","html_url":"https://github.com/dokmetas","followers_url":"https://api.github.com/users/dokmetas/followers","following_url":"https://api.github.com/users/dokmetas/following{/other_user}","gists_url":"https://api.github.com/users/dokmetas/gists{/gist_id}","starred_url":"https://api.github.com/users/dokmetas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dokmetas/subscriptions","organizations_url":"https://api.github.com/users/dokmetas/orgs","repos_url":"https://api.github.com/users/dokmetas/repos","events_url":"https://api.github.com/users/dokmetas/events{/privacy}","received_events_url":"https://api.github.com/users/dokmetas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-23T08:33:43Z","updated_at":"2019-02-11T13:17:39Z","closed_at":"2019-02-11T13:17:39Z","author_association":"NONE","body":"## Description\r\n\r\nTrying to long press a mobile element by;\r\n```\r\n        TouchActions action = new TouchActions(driver);\r\n        action.longPress(element);\r\n        action.perform();\r\n```\r\n\r\nper example usage in; \r\nhttp://appium.io/docs/en/commands/interactions/touch/long-press/\r\n\r\nand getting ;\r\n```\r\njava.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen\r\n\tat org.openqa.selenium.interactions.touch.TouchActions.<init>(TouchActions.java:38)\r\n\tat stepdefinitions.Scenarios.i_longpress_contact(Scenarios.java:137)\r\n\tat ✽.I longpress contact contact(src\\test\\resources\\features\\Contacts.feature:76)\r\n```\r\n\r\n## Environment\r\n* java client build version or git revision if you use some shapshot: 7.0.0\r\n* Appium server version or git revision if you use some shapshot: appium@1.10.1\r\n* Desktop OS/version used to run Appium if necessary: Windows 10 Enterprise\r\n* Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: npm: '6.5.0'\r\n* Mobile platform/version under test: Android 7.1.1\r\n* Real device or emulator/simulator: Real Device Motorola Moto E4 Plus\r\n\r\n## Other versions\r\n        <aspectj.version>1.8.10</aspectj.version>\r\n        <cucumber.version>4.2.2</cucumber.version>\r\n        <cucumber.jvm.deps.version>1.0.6</cucumber.jvm.deps.version>\r\n        <junit.version>4.12</junit.version>\r\n        <selenium.server.version>3.141.59</selenium.server.version>\r\n        <appium.java.client.version>7.0.0</appium.java.client.version>\r\n\r\n\r\n## Ecxeption stacktraces\r\nhttps://gist.github.com/dokmetas/a196d76aa648b56543153e8a5659cb2c\r\n"},"comment":{"url":"https://api.github.com/repos/appium/java-client/issues/comments/462323722","html_url":"https://github.com/appium/java-client/issues/1092#issuecomment-462323722","issue_url":"https://api.github.com/repos/appium/java-client/issues/1092","id":462323722,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MjMyMzcyMg==","user":{"login":"dokmetas","id":11345785,"node_id":"MDQ6VXNlcjExMzQ1Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/11345785?v=4","gravatar_id":"","url":"https://api.github.com/users/dokmetas","html_url":"https://github.com/dokmetas","followers_url":"https://api.github.com/users/dokmetas/followers","following_url":"https://api.github.com/users/dokmetas/following{/other_user}","gists_url":"https://api.github.com/users/dokmetas/gists{/gist_id}","starred_url":"https://api.github.com/users/dokmetas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dokmetas/subscriptions","organizations_url":"https://api.github.com/users/dokmetas/orgs","repos_url":"https://api.github.com/users/dokmetas/repos","events_url":"https://api.github.com/users/dokmetas/events{/privacy}","received_events_url":"https://api.github.com/users/dokmetas/received_events","type":"User","site_admin":false},"created_at":"2019-02-11T13:17:39Z","updated_at":"2019-02-11T13:17:39Z","author_association":"NONE","body":"works with Actions API. Thanks."}}
{"actor":{"display_login":"dokmetas"}}