selenium save screenshot documentation code example Example: python selenium screenshot driver.save_screenshot("screenshot.png")