title: How do I include screenshot in python pytest html report
body: <p>When I hit the below url in browser "<a href="https://192.168.xx.xxx/Test/ScreenCapture" rel="nofollow noreferrer">https://192.168.xx.xxx/Test/ScreenCapture</a>"
  I get the screenshot of the device screen under test in the browser.</p>
  
  <p>How do I add the screenshot in my pytest html test report.
  Currently I am using below code which captures screen shot in the test directory specified.</p>
  
  <pre><code>url = 'https://192.168.xx.xxx/Test/ScreenCapture'
  driver.get(url)    driver.save_screenshot('/home/tests/screen.png')
  </code></pre>
  
  <p>I am running my pytest with below command : 
  py.test --html=report.html --self-contained-html screentest.py</p>