title: Check if an image exists in a web page
body: <p>I am automating a web application using VBScript. Now my problem is, if I click on any link or button in the web page, it's taking some time to load the web page, but the URL remains constant. So my script should wait until the loading is completed.</p>
  
  <p>The following code is not helping me:</p>
  
  <pre><code>Do While objIE.Busy
    DoEvents
  Loop
  </code></pre>
  
  <p>Actually, when the page is loading, an image (Loading-Indicator) is displayed on the web page. So I am trying to identify if the image and wait until the image exists on the page and then continue.</p>
  
  <p>I want some thing like:</p>
  
  <pre><code>Do while Image (Loading-Indicator).exists
    DoEvents
  Loop
  </code></pre>
  
  <p>Is it possible?</p>