0
点赞
收藏
分享

微信扫一扫

Selenium在远程中的截图

脱下愤怒的小裤衩 2022-08-01 阅读 172


/远程截图

driver=new Augmenter().augment(driver);

File srcee=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);

try {

FileUtils.copyFile(srcee, new File("resource/remote.png"));

} catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

driver.quit();

举报

相关推荐

0 条评论