def test_element_screenshot_zero_size(browser, app_url):
    """Elements with 0 width and 0 height should crash."""
    browser.visit(app_url)

    elem = browser.find_by_id("zerodiv")

    with pytest.raises(WebDriverException):
        elem.screenshot()
Elements with 0 width and 0 height should crash.
tests/tests_webdriver/test_screenshot.py