How to get a full page screenshot with Python-UnitTest?

How can I get a full page screenshot with Python-UnitTest?

Hello Macy,

You can refer to the sample code snippet below:

from selenium import webdriver

driver = webdriver.Chrome()

driver.get("http://www.example.com")

    # Returns and base64 encoded string into image
driver.save_screenshot('./image.png')