title: Unable to get image src url with Cheerio
body: <p>At the moment I am trying to get value in <code>src=</code> of</p>
  <pre><code>&lt;div class=&quot;page-break no-gaps&quot;&gt;
    &lt;img id=&quot;image-0&quot; src=&quot;https://foo.bar/image.jpg&quot; class=&quot;wp-image&quot; alt=&quot;Title&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>with the following code:</p>
  <pre><code>getImageSrc(imageObj: Cheerio | undefined): string {
      let image
      image = imageObj?.attr('src')
      console.log(image)
  }
  </code></pre>
  <p>selector code:
  <code>chapterDetailsSelector = 'div.page-break &gt; img'</code></p>
  <p>However all I am getting is undefined</p>
  <p>EDITED - add more context</p>