title: Capture screenshots on failure with Selenium + Python + Jenkins
body: <p>I have written my scripts in Selenium Python. In the Jenkins, I have added Publish JUnit test results report(<a href="http://nose.readthedocs.org/en/latest/plugins/xunit.html" rel="nofollow noreferrer">http://nose.readthedocs.org/en/latest/plugins/xunit.html</a>). However, I want to add the screenshot in that report as well. I feel like my tests are not useful without screenshots. How can I achieve this? I also would like receive error screenshots as attachments in my email.</p>
  
  <p>Can I achieve this just by using a Jenkins plugin? or I need to add something in my selenium script? I am not able to find anything useful in selenium python. </p>
  
  <p>I went over the following question, but it does explain the full process
  <a href="https://stackoverflow.com/questions/31732095/adding-a-png-image-and-table-html-while-sending-email-in-jenkins">Adding a png image and table html while sending email in Jenkins</a></p>
  
  <p>Please help.....</p>