python selenium set screen shot to variable code example Example: python selenium screenshot driver.save_screenshot("screenshot.png")