1.引入jia包
<!-- 截图插件 -->
<dependency>
<groupId>ru.yandex.qatools.ashot</groupId>
<artifactId>ashot</artifactId>
<version>1.5.4</version>
</dependency>
<!-- selenum -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</dependency>
2.我这里用的谷歌,其他浏览器操作类似。首先查看谷歌版本信息,浏览器输入 chrome://version/
3.下载google对应版本信息