jjzjj

AppiumDriver

全部标签

java - 无法实例化 AppiumDriver 类型

我在我的项目构建路径中添加了以下jar:java-client-2.0.0来自http://appium.io/downloads.html>>Appium客户端库>>Javaselenium-java-2.43.1selenium-java-2.43.1-srcsselenium-server-standalone-2.43.1这是我的代码:publicclassSampleApp{WebDriverdr;@TestpublicvoidtestApp()throwsMalformedURLException,InterruptedException{Stringapkpath="D:

android - 如何在 Java 中使用 appium 为 android native 应用程序执行滑动

我需要滑动我的应用程序(从左到右和从右到左),而我在appium中使用Java来实现androidnative应用程序自动化。我试过这个链接,Swipemethodnotworkinginandroidautomationtesting但我不能,请分享任何其他链接或任何人帮助我。 最佳答案 这是我们的做法-向左滑动-appiumDriver.context("NATIVE_APP");Dimensionsize=appiumDriver.manage().window().getSize();intstartx=(int)(size