Based on the Java language, selenium and chromedriver implement web screenshot saving and image cutting into 10 pieces
- maven clean package
- example
java -jar screenshot-auto-0.0.1-SNAPSHOT.jar ${url} ${chromedriver_path} ${save_path}
${url}:You want screenshots of the page
${chromedriver_path}:The path of the chromedriver
${save_path}:Save to the folder path
基于java语言,还有selenium和chromedriver实现网页截图和切割图片
- maven打包 2.执行脚本如下
java -jar screenshot-auto-0.0.1-SNAPSHOT.jar ${url} ${chromedriver_path} ${save_path}
${url}:截图的url
${chromedriver_path}:chromedriver驱动路径
${save_path}:保存的路径(如:/Users/a/Desktop/)