我想做一个‘Z’在密码模式格式。我已经使用了下面的apporach.but,它需要三个笔划,或者我们可以说,三个滑动,以使。但我想在一个单一的笔划整个路径
driver.swipe(532,270,770,249,2000);
driver.swipe(770,249,535,493,2000);
driver.swipe(535,493,775,492,2000);
Thread.sleep(2000);发布于 2017-01-17 17:08:49
我会试一试!我不确定它是否有意义,但让我们尝试一下,它可能是一个具有相同逻辑的很好的解决方案
@Test
public void Swipe() {
new Actions(driver).swipe(532,270,770,249,2000).swipe(770,249,535,493,2000).swipe(535,493,775,492,2000).build().perform();
}https://stackoverflow.com/questions/41689831
复制相似问题