I am getting error says "Returned value cannot be converted to WebElement: {element-6066-11e4-a52e-4f735466cecf=1}" when trying to click the button using UiSelector.
below is the Script:
File classpathRoot = new File(System.getProperty("user.dir")); File appDir = new File(classpathRoot, "/Apps/"); File app = new File(appDir, "Bank 3_R3-d6bfb34f.apk"); DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(CapabilityType.BROWSER_NAME, ""); capabilities.setCapability("deviceName", "9885e64e3449583847"); capabilities.setCapability("platformVersion", "8.0.0"); capabilities.setCapability("platformName", "Android"); capabilities.setCapability("app", app.getAbsolutePath()); capabilities.setCapability("appPackage", "com.zapp.bank.vanillaBank3.release"); capabilities.setCapability("appActivity", "com.zapp.bank.ui.activity.SplashScreenActivity"); @SuppressWarnings("rawtypes") AndroidDriver driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities); driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);