【发布时间】:2019-03-22 20:08:19
【问题描述】:
这是我的代码,代码不起作用,控制台发送: java.lang.ClassCastException:无法将 com.sun.proxy.$Proxy18 转换为 org.openqa.selenium.remote.RemoteWebElement
我需要滑动/向下滚动。
TouchAction swipe = new TouchAction(ApplicationLauncherAndroid.driver)
.tap(element(lblImagen))// first initialElement
.waitAction(waitOptions(Duration.ofMillis(2000)))
.moveTo(element(elementoFinal)) final Element
.release();
swipe.perform();
【问题讨论】:
-
请edit您的问题并格式化您的源代码 - 目前很难阅读。此外,请附上问题的描述:代码不工作还是无法编译?