title: Parse local webpages with Selenium in VBA Excel fails
body: <p>I want to parse a list of local saved webpages. Sadly the webpages won't open with Internet Explorer (error is "page not responding"), but FireFox opens them just fine. So I had to find a "workaround" to get the souce code so that I can parse it for the information i want. Therefore I found SeleniumBasic.
  <br>
  I use Excel 2013 and SeleniumBasic 2.0.6.0
  <br>
  <br>
  I encounter the following problem when using Selenium. This is a very short version of what the code should be:</p>
  
  <pre><code>Sub TestSeleniumParsing()
  
      Dim sel As Selenium.WebDriver
      Set sel = New Selenium.WebDriver
      Dim html As HTMLDocument
      Dim ihtml As IHTMLElement
      Dim ihtmlcoll As IHTMLElementCollection
  
      sel.Start "firefox", "about:blank"
      sel.Get "file:///D:/LocalWebPages/MV_999.htm" 'GET LOCAL WEBPAGE
  
      Set html = New HTMLDocument
      html.body.innerHTML = sel.PageSource
      Set sel = Nothing
  
      Set ihtmlcoll = html.getElementsByClassName("name") ' THIS IS THE LINE WITH THE ERROR 
                                                      WHICH USED TO WORK WHEN I USED 
                                                      InterExporerMedium INSTEAD OF Selenium
      For Each ihtml In ihtmlcoll
          'SOME CODE HERE BUT NOW NOT IMPORTANT...
      Next ihtml
  
  
      Set html = Nothing
      Set ihtml = Nothing
      Set ihtml = Nothing
  
  End Sub
  </code></pre>
  
  <p>At the line <code>Set ihtmlcoll = html.getElementsByClassName("name")</code> I get an Error which I didn't receive before when I used Internet Explorer:<br>
  <a href="https://i.stack.imgur.com/u6A2s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6A2s.png" alt="enter image description here"></a></p>
  
  <p>The reason why I don't want to write everything in Selenium VBA is because I already have the code in VBA.
  <br>
  <br>
  Any help is much appreciated.
  <br>
  <br>
  PS: this question is related to this one <a href="https://stackoverflow.com/questions/34458767/store-selenium-html-source-code-into-element-of-type-htmldocument/34459741?noredirect=1#comment56678625_34459741">here</a>.</p>