是否真的可以在Android或iOS上使用Appium测试Cordova应用程序。
我正在尝试以下代码并获得异常。
File appDir = new File("C:\\xampp\\htdocs\\Android");
File app = new File(appDir, "App.apk");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName","Android");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("browserName", "");
capabilities.setCapability("platformVersion", "4.3");
capabilities.setCapability("app", app.getAbsolutePath());
RemoteWebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
String script="alert('hello');";
JavascriptExecutor executor=driver;
executor.executeAsyncScript(script);
应用程序在Android上成功启动但我在执行脚本时遇到异常。
线程中的异常" main" org.openqa.selenium.WebDriverException:尚未实现。请帮助我们:http://appium.io/get-involved.html(警告:服务器未提供任何堆栈跟踪信息)