title: Error "Object variable or with block variable not set" when using getElementsByClassName
body: <p>I am want to scrap from amazon some fields.</p>
  
  <p>Atm I am using a link and my vba script returns me name and price.</p>
  
  <p>For example:</p>
  
  <p>I put the link into column A and get the other fields in the respective columns, f.ex.: <code>http://www.amazon.com/GMC-Denali-Black-22-5-Inch-Medium/dp/B00FNVBS5C/ref=sr_1_1?s=outdoor-recreation&amp;ie=UTF8&amp;qid=1436768082&amp;sr=1-1&amp;keywords=bicycle</code></p>
  
  <p>However, I would also like to have the <code>product description</code>.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>Sub ScrapeAmz()
  
   Dim Ie As New InternetExplorer
   Dim WebURL
   Dim Docx As HTMLDocument
   Dim productDesc
   Dim productTitle
   Dim price
   Dim RcdNum
  
  Ie.Visible = False
  
  For RcdNum = 2 To ThisWorkbook.Worksheets(1).Range("A65536").End(xlUp).Row
  
      WebURL = ThisWorkbook.Worksheets(1).Range("A" &amp; RcdNum)
       Ie.Navigate2 WebURL
       Do Until Ie.ReadyState = READYSTATE_COMPLETE
       DoEvents
       Loop
       Set Docx = Ie.Document
       productTitle = Docx.getElementById("productTitle").innerText
       'productDesc = Docx.getElementsByClassName("productDescriptionWrapper")(0).innerText
       price = Docx.getElementById("priceblock_ourprice").innerText
       ThisWorkbook.Worksheets(1).Range("B" &amp; RcdNum) = productTitle
       'ThisWorkbook.Worksheets(1).Range("C" &amp; RcdNum) = productDesc
       ThisWorkbook.Worksheets(1).Range("D" &amp; RcdNum) = price
     Next
  
  End Sub
  </code></pre>
  
  <p>I am trying to get the product description by using <code>productDesc = Docx.getElementsByClassName("productDescriptionWrapper")(0).innerText</code>.</p>
  
  <p>However, I get an error. </p>
  
  <pre><code>Object variable or with block variable not set.
  </code></pre>
  
  <p>Any suggestion why my statement does not work?</p>
  
  <p>I appreciate your replies!</p>