Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何简单/自动化的方法可以使用在页面中向下滚动RSelenium?
RSelenium
我在应该向下滚动以查看内容的页面中使用延迟。
remDr$navigate("http://www.pageyouprefer.com/") Sys.sleep(35)
您可以通过 javascript 执行滚动。
试试这个。
WebDriver driver = new FirefoxDriver(); JavascriptExecutor js = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,200)", "");