title: How to generate HTML report with screenshots
body: <p>import pytest</p>
  
  <p>import uiautomator2 as u2</p>
  
  <p>d=u2.connect()</p>
  
  <p>def test_precondition():</p>
  
  <pre><code>d.press(“home”)
  </code></pre>
  
  <p>def test_procedure():</p>
  
  <pre><code>d(text=“Settings”).click()
  
  d.screenshot(“Settings.png”)
  
  d(text=“Bluetooth”).click()
  
  d.screenshot(“Bluetooth.png”)
  </code></pre>
  
  <p>def test_expectedResult():</p>
  
  <pre><code>assert d(text=“Bluetooth”).exists
  </code></pre>
  
  <p>running above script as : py.test --html=report.html --self-contained-html Bluetooth settings.py</p>
  
  <p>I am new to python When I am running the above script with pytest and generating HTML report I am unable to see screenshot image in HTML report requesting to please provide solution</p>