我正在测试触摸设备的网站。其中一页具有“拉动刷新”和“半拉”用于显示搜索文本框。它类似于 iOS 设备上的邮件应用程序。
如何使用 Webdriver 测试此功能?
最佳答案
我认为这应该有效:
Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(someElement)
.moveToElement(otherElement)
.release(otherElement)
.build();
dragAndDrop.perform();
关于java - 如何在带有触摸屏的移动浏览器上测试 'pull' 和 'half pull' 操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19126987/