Selenium get_screenshot_as_file vs get_screenshot_as_base64?
问题 I'm wondering what the advantages/disadvantages of one over the other are? I'm running against Selenium Server on a headless remote instance with Xvfb acting as the display. Both methods work fine and the resulting screen capture file (if I convert the base64 one and save it as an image file) are identical file size and look identical. So why would I want to use/not use one over the other? 回答1: With the get_screenshot_as_file, the screenshot get saves into a binary file, while with get