{"action":"created","issue":{"url":"https://api.github.com/repos/appium/java-client/issues/971","repository_url":"https://api.github.com/repos/appium/java-client","labels_url":"https://api.github.com/repos/appium/java-client/issues/971/labels{/name}","comments_url":"https://api.github.com/repos/appium/java-client/issues/971/comments","events_url":"https://api.github.com/repos/appium/java-client/issues/971/events","html_url":"https://github.com/appium/java-client/issues/971","id":340298051,"node_id":"MDU6SXNzdWUzNDAyOTgwNTE=","number":971,"title":"Exception in thread \"main\" org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {ELEMENT=33000000-0000-0000-6139-000000000000}","user":{"login":"bkumar08","id":41115953,"node_id":"MDQ6VXNlcjQxMTE1OTUz","avatar_url":"https://avatars2.githubusercontent.com/u/41115953?v=4","gravatar_id":"","url":"https://api.github.com/users/bkumar08","html_url":"https://github.com/bkumar08","followers_url":"https://api.github.com/users/bkumar08/followers","following_url":"https://api.github.com/users/bkumar08/following{/other_user}","gists_url":"https://api.github.com/users/bkumar08/gists{/gist_id}","starred_url":"https://api.github.com/users/bkumar08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkumar08/subscriptions","organizations_url":"https://api.github.com/users/bkumar08/orgs","repos_url":"https://api.github.com/users/bkumar08/repos","events_url":"https://api.github.com/users/bkumar08/events{/privacy}","received_events_url":"https://api.github.com/users/bkumar08/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-11T15:38:39Z","updated_at":"2018-07-12T08:19:03Z","closed_at":null,"author_association":"NONE","body":"Getting following error when i running the test against IOS devices on Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '10.0.1\r\n\r\nException in thread \"main\" org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {ELEMENT=33000000-0000-0000-6139-000000000000}\r\n\r\n## Environment\r\n\r\n* java client jar version : java-client-5.0.2.jar\r\n* Appium desktop server version : 1.8.1\r\n* Desktop OS/version used to run Appium if necessary: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '10.0.1'\r\n* Selenium jar version : 2.45.0 \r\n* Real device or emulator/simulator: simulator\r\n\r\n## Details\r\n\r\n{code}\r\nException in thread \"main\" org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {ELEMENT=33000000-0000-0000-6139-000000000000}\r\nBuild info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'\r\nSystem info: host: 'asm-3.local', ip: '172.16.0.80', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.4', java.version: '10.0.1'\r\nDriver info: driver.version: IOSDriver\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:359)\r\n\tat io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:62)\r\n\tat io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)\r\n\tat io.appium.java_client.ios.IOSDriver.findElement(IOSDriver.java:1)\r\n\tat io.appium.java_client.FindsByAccessibilityId.findElementByAccessibilityId(FindsByAccessibilityId.java:31)\r\n\tat testlastpack.IOSTest.main(IOSTest.java:13)\r\nCaused by: java.lang.ClassCastException: java.base/java.util.HashMap cannot be cast to org.openqa.selenium.WebElement\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:357)\r\n\t... 5 more\r\n{code}\r\n\r\n## Code To Reproduce Issue :\r\n\r\npackage testlastpack;\r\n\r\nimport java.net.MalformedURLException;\r\nimport java.net.URL;\r\nimport java.util.concurrent.TimeUnit;\r\n\r\nimport org.openqa.selenium.remote.DesiredCapabilities;\r\n\r\nimport io.appium.java_client.ios.IOSDriver;\r\nimport io.appium.java_client.ios.IOSElement;\r\nimport io.appium.java_client.remote.AutomationName;\r\nimport io.appium.java_client.remote.MobileCapabilityType;\r\n\r\npublic class TestLast {\r\n\tstatic IOSDriver<IOSElement> driver;\r\n\tpublic static IOSDriver<IOSElement> capabilities() throws MalformedURLException \r\n\t{\r\n\t\t\r\n\t\tDesiredCapabilities obj = new DesiredCapabilities();\r\n\t\tobj.setCapability(MobileCapabilityType.DEVICE_NAME,\"iPhone 8\");\r\n\t\tobj.setCapability(MobileCapabilityType.PLATFORM_NAME,\"IOS\");\r\n\t\tobj.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);\r\n\t\tobj.setCapability(MobileCapabilityType.APP,\"/Users/bkumar/Desktop/UICatalog.app\");\r\n\t\tdriver = new IOSDriver<>(new URL(\"http://127.0.0.1:4723/wd/hub\"),obj);\r\n\t\tdriver.manage().timeouts().implicitlyWait(15,TimeUnit.SECONDS);\r\n\t\treturn driver;\t\t\r\n\t}\r\n\r\n}\r\n==========================================================\r\nMain method class \r\n\r\npackage testlastpack;\r\n\r\nimport java.net.MalformedURLException;\r\n\r\nimport io.appium.java_client.ios.IOSDriver;\r\nimport io.appium.java_client.ios.IOSElement;\r\n\r\npublic class IOSTest extends TestLast{\r\n\r\n\tpublic static void main(String[] args) throws MalformedURLException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tIOSDriver<IOSElement>driver = capabilities();\r\n\t\tdriver.findElementByAccessibilityId (\"Alert Views\").click();\r\n\t\tdriver.findElementByXPath (\"//*[@value='Text Enter']\").click();\r\n\t\tdriver.findElementByClassName (\"XCUIElementTypeTextField\").sendKeys(\"hellob\");\r\n\t\tdriver.findElementByAccessibilityId (\"Ok\").click();\r\n\t}\r\n\r\n}\r\n\r\n##  Appium logs\r\nXCUITest] Log file for xcodebuild test: /var/folders/bk/shl67gl17zqd764mf8fk5y080000gp/T/com.apple.dt.XCTest/IDETestRunSession-C038F5E8-4613-40D0-A776-6D819C9C7E59/WebDriverAgentRunner-BD6341E8-BF2F-4345-827A-278241ABB675/Session-WebDriverAgentRunner-2018-07-11_182446-1QGKGm.log\r\n[XCUITest] xcodebuild exited with code '65' and signal 'null'\r\n[BaseDriver] Shutting down because we waited 60 seconds for a command\r\n[XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.\r\n[XCUITest] Deleting simulator created for this run (udid: '326AFF5B-CDA7-49FA-B9B7-4F84C927A764')\r\n[XCUITest] Killing running processes 'xcodebuild.*326AFF5B-CDA7-49FA-B9B7-4F84C927A764, 326AFF5B-CDA7-49FA-B9B7-4F84C927A764.*XCTRunner' for the device 326AFF5B-CDA7-49FA-B9B7-4F84C927A764...\r\n[Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'\r\n[Appium] Removing session b7957590-376d-4465-ac6b-a86c937ee50d from our master session list\r\n[XCUITest] 'pgrep -nif xcodebuild.*326AFF5B-CDA7-49FA-B9B7-4F84C927A764' didn't detect any matching processes. Return code: 1\r\n[XCUITest] 'pgrep -nif 326AFF5B-CDA7-49FA-B9B7-4F84C927A764.*XCTRunner' didn't detect any matching processes. Return code: 1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/java-client/issues/comments/404430099","html_url":"https://github.com/appium/java-client/issues/971#issuecomment-404430099","issue_url":"https://api.github.com/repos/appium/java-client/issues/971","id":404430099,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDQzMDA5OQ==","user":{"login":"bkumar08","id":41115953,"node_id":"MDQ6VXNlcjQxMTE1OTUz","avatar_url":"https://avatars2.githubusercontent.com/u/41115953?v=4","gravatar_id":"","url":"https://api.github.com/users/bkumar08","html_url":"https://github.com/bkumar08","followers_url":"https://api.github.com/users/bkumar08/followers","following_url":"https://api.github.com/users/bkumar08/following{/other_user}","gists_url":"https://api.github.com/users/bkumar08/gists{/gist_id}","starred_url":"https://api.github.com/users/bkumar08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkumar08/subscriptions","organizations_url":"https://api.github.com/users/bkumar08/orgs","repos_url":"https://api.github.com/users/bkumar08/repos","events_url":"https://api.github.com/users/bkumar08/events{/privacy}","received_events_url":"https://api.github.com/users/bkumar08/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T08:19:03Z","updated_at":"2018-07-12T08:19:03Z","author_association":"NONE","body":"@SrinivasanTarget , Thanks for quick reply !  i tried to download appium server 1.8.2. but didn't appium desktop 1.8.2-beta for mac OS.\r\nCould you please help me to get appium desktop 1.8.2 for MAC OS. \r\n\r\ni fund appium server 1.8.2-beta for WINDOWS system. but i am using the MAC system   "}}
{"actor":{"display_login":"bkumar08"}}