Appium 如何在eclipse中的maven项目中使用UI自动机类?

Appium 如何在eclipse中的maven项目中使用UI自动机类?,appium,appium-android,Appium,Appium Android,我是使用UIAutomator 2进行android测试的新手,我想使用UIScrollable类,但这个类在android.support包中。我找不到任何可以添加到pom中用于导入类的依赖项。实际上它更简单 您不必在项目中添加任何依赖项作为其内置的appium依赖项,只需将automationName功能设置为UiAutomator2,appium将使用UiAutomator2服务器+客户端运行测试 driver.findElementByAndroidUIAutomator("ne

我是使用UIAutomator 2进行android测试的新手,我想使用UIScrollable类,但这个类在android.support包中。我找不到任何可以添加到pom中用于导入类的依赖项。

实际上它更简单

您不必在项目中添加任何依赖项作为其内置的appium依赖项,只需将
automationName
功能设置为
UiAutomator2
,appium将使用UiAutomator2服务器+客户端运行测试

    driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector())
 .scrollIntoView(new UiSelector().text(\"Radio Group\"));"));

基本上与默认UiAutomator相同。

你说的“使用类”是什么意思?您正在使用Appium Web驱动程序吗?向我们展示您的代码、您尝试过的内容等。是的,我正在使用appium,但需要导入uiautomator和其他android类。我可以通过什么方式在appium支持的测试中导入它们。