四个截图的方法:
self.driver.save_screenshot(fielname)
self.driver.get_screenshot_as_base64()
self.driver.get_screenshot_as_file(fielname)
self.driver.get_screenshot_as_png()
其中,通过源代码可知save_screenshot方法和get_screentshot_as_file方法是等价的