Jun 05, 2018 4:01:48 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end Jun 05, 2018 4:01:54 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS Jun 05, 2018 4:03:02 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end Jun 05, 2018 4:03:07 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS Exception in thread "main" org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {stacktrace=NoSuchElementError: An element could not be located on the page using the given search parameters. at AndroidDriver.callee$0$0$ (C:\Users\anuroop.jha\AppData\Local\appium-desktop\app-1.6.1\resources\app\node_modules\appium-android-driver\lib\commands\find.js:69:13) at tryCatch (C:\Users\anuroop.jha\AppData\Local\appium-desktop\app-1.6.1\resources\app\node_modules\appium-android-driver\node_modules\babel-runtime\regenerator\runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\anuroop.jha\AppData\Local\appium-desktop\app-1.6.1\resources\app\node_modules\appium-android-driver\node_modules\babel-runtime\regenerator\runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\anuroop.jha\AppData\Local\appium-desktop\app-1.6.1\resources\app\node_modules\appium-android-driver\node_modules\babel-runtime\regenerator\runtime.js:100:21) at GeneratorFunctionPrototype.invoke (C:\Users\anuroop.jha\AppData\Local\appium-desktop\app-1.6.1\resources\app\node_modules\appium-android-driver\node_modules\babel-runtime\regenerator\runtime.js:136:37) at , error=no such element, message=An element could not be located on the page using the given search parameters.} Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'GGN-DTP-767', ip: '172.16.27.137', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: driver.version: AndroidDriver at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:375) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:56) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:417) at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:64) at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1) at org.openqa.selenium.By$ById.findElement(By.java:218) at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:360) at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:52) at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1) at com.Ampower.createPraposal(Ampower.java:66) at com.Ampower.main(Ampower.java:23) Caused by: java.lang.ClassCastException: com.google.common.collect.Maps$TransformedEntriesMap cannot be cast to org.openqa.selenium.WebElement at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:373) ... 14 more