# selenium-spoon-plugin **Repository Path**: yeetrack/selenium-spoon-plugin ## Basic Information - **Project Name**: selenium-spoon-plugin - **Description**: Maven plugin for generating screenshot report when running selenium case - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-02-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #selenium-spoon-plugin# ===================== Maven plugin for generating screenshot report when running selenium case. 参考Android-Spoon插件,改写成selenium插件。 使用方式: 在你的selenium项目的pom中添加下面的依赖: com.yeetrack.selenium spoon 1.0 添加plugin: com.yeetrack.selenium spoon 1.0 spoon report post-integration-test spoon 在截图时,不要再使用selenium提供的方法,要使用插件提供的方法: DriverCapture.snapShot("这里输入图片描述", driver); 执行: mvn clean install 截图存放路径:**target/screenshots** html报告路径: **target/screenshotResult/report**