title: How to get the image url from a webpage
body: <p>I have been trying to get the image url from a website, the example page is <code>https://ecat.aptiv.com/product/15304719</code>. Using Chrome inspecting feature, I detect the image is inside class <code>ProductDetailHeader col-xs-2</code> and the <code>src</code> is</p>
  <pre><code>&lt;... src=&quot;https://ecat.aptiv.com/images/default-source/ecatalog-images/part_gt-2-8-ph-a-001-png.png?sfvrsn=1d1e47d5_0&quot;&gt;
  </code></pre>
  <p>However, when I try to extract the url, there are just null values for <code>src</code></p>
  <pre><code> Dim elements As Object
   Dim element As Object
   Set elements = IE.Document.getElementsByClassName(&quot;ProductDetailHeader col-xs-2&quot;)
     For Each element In elements
          Debug.Print element.getAttribute(&quot;src&quot;)
     Next
  </code></pre>
  <p>I have no problem getting other values but I cannot figure out why I cannot get the url.</p>