title: Automatic screenshots when test fail by Selenium Webdriver in Python
body: <p>I want to automatic capturing screenshots if my webdriver tests failed (any exception or assertion error). I am using Python unittest and Selenium Webdriver. Does anyone have any solution to this problem?</p>