Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 圆滑块小时测试仪_Android_Selenium_Appium_Appium Android - Fatal编程技术网

Android 圆滑块小时测试仪

Android 圆滑块小时测试仪,android,selenium,appium,appium-android,Android,Selenium,Appium,Appium Android,我想在selenium tester中设置我的滑块小时数 我的代码 protected void hourCircularSlider(WebElement sliderHour) { Actions move = new Actions(getDriverInstance()); //Action action = move.dragAndDropBy(sliderHour, 10, 0).build(); //action.perform(); move.cl

我想在selenium tester中设置我的滑块小时数

我的代码

protected void hourCircularSlider(WebElement sliderHour) {
    Actions move = new Actions(getDriverInstance());
    //Action action = move.dragAndDropBy(sliderHour, 10, 0).build();
    //action.perform();
    move.clickAndHold(sliderHour).moveByOffset(10,0).release().perform();
}
错误呢

org.openqa.selenium.InvalidArgumentException: Parameters were incorrect. We wanted {"required":["actions"]} and you sent ["element"]
os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '1.8.0_191'
Driver info: io.appium.java_client.android.AndroidDriver

这可能是版本不匹配,您的Selenium和AndroidDriver版本是什么?