我无法使用webdriver.io向下滚动。没有收到任何错误消息,只是不滚动。我从Webdrver.io文档想尽了各种办法:在webdriver.io上滚动不起作用
他们的it('should demonstrate the scroll command', function() {
var elem = $('#myElement');
// scroll to specific element
elem.scroll();
// scroll to specific element with offset
// scroll offset will be added to elements position
elem.scroll(100, 100);
// scroll to specific x and y position
browser.scroll(0, 250);
});
不工作,有什么建议?
您可以尝试操作类的move_to_element(元素)模仿滚动。 – kushal