Selenium学习8--截图,拖拽页面元素,键盘操做,鼠标右键,悬停,鼠标双击

1. 当前窗口截图 @Test public void captureScreenInCurrentWindow(){ driver.get("http:www.sogou.com"); File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); try{
相关文章
相关标签/搜索