selenium截图
时间:2021-08-23 19:35:30
收藏:0
阅读:18
谷歌驱动自带了截图驱动
get_screenshot_as_file()
具体使用方法
wd.get_screenshot_as_file(‘C:\\Users\\EDZ\PycharmProjects\\first_test\\venv\\img\\test.png‘)
就这样就可以简单的获取截图,对于最后的pass检查有很大用处
原文:https://www.cnblogs.com/xiaopo/p/15177071.html
评论(0)