import os
import time
class ScreenShot(object):
def screenshot(self):
rq = time.strftime('%Y%m%d%H%M', time.localtime(time.time()))
pic_path = os.path.dirname(os.getcwd()) + '/screenshots/'
pic_name = pic_path + rq + '.png'
self.driver.save_screenshot(pic_name)
python+selenium 截图保存
最新推荐文章于 2024-05-23 17:06:16 发布