def test_html_snapshot(browser, app_url):
    """Should take an html snapshot of the current page."""
    browser.visit(app_url)

    filename = browser.html_snapshot()
    assert tempfile.gettempdir() in filename
Should take an html snapshot of the current page.
tests/tests_webdriver/test_html_snapshot.py