title: Get the src value in request parameter - Puppeteer
body: <p>In puppeteer I'm trying to get the src value of an element </p>
  
  <pre><code>&lt;img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Buphagus_erythrorhynchus00.jpg/220px-Buphagus_erythrorhynchus00.jpg" /&gt;
  </code></pre>
  
  <p>When I try to inspect this request with </p>
  
  <pre><code>page.on("request", request =&gt; {
      console.log(request.url());
  }
  </code></pre>
  
  <p>The url part of the request would print out: <a href="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Buphagus_erythrorhynchus00.jpg/220px-Buphagus_erythrorhynchus00.jpg" rel="nofollow noreferrer">https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Buphagus_erythrorhynchus00.jpg/220px-Buphagus_erythrorhynchus00.jpg</a></p>
  
  <p>Is there anyway I can actually also get the src value ie: <em>//upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Buphagus_erythrorhynchus00.jpg/220px-Buphagus_erythrorhynchus00.jpg</em> of the request.</p>