屏幕截图

截图方法

save_screenshot() 该方法直接保存当前屏幕截图到当前脚本所在文件位置

driver.save_screenshot('login.png')

get_screenshot_as_file(self, filename)将截图保留到指定文件路径

driver.get_screenshot_as_file('E:/python/appium/image/login1.png')

猜你喜欢

转载自www.cnblogs.com/shenhainixin/p/9290945.html