title: Excel VBA scrape CSS elements found in HTML document
body: <p>Here is the part of the HTML document that I'm trying to scrape from:</p>
  
  <pre><code>&lt;div id="abc" class="outer"&gt;   
      ::before
      &lt;div class="inner"&gt;&lt;/div&gt;
      ::after
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried to get the innerHTML of this snippet using</p>
  
  <pre><code>Set Elements = Document.getElementsByClassName("outer")
  MsgBox Elements(0).innerHTML
  </code></pre>
  
  <p>The only thing that pops up in the message box is (without quotes):</p>
  
  <pre><code>"&lt;div class="inner"&gt;&lt;/div&gt;"
  </code></pre>
  
  <p>innerHTML seems to ignore the ::before and ::after CSS pseudo-elements. Is there any way to grab these or determine if they are even there?</p>
  
  <p>The reason I'm asking is that when the application I'm trying to automate is in a loading state, the ::before and ::after elements are there. Once it is out of a loading state, these elements disappear.</p>
  
  <p>Thank you</p>