title: Cannot get the text inside a <p> tag using VBA
body: <p>I have the following URL</p>
  
  <p><a href="https://www.wavemotion.gr/shop/smartphone-accessories/easy-one-touch-wireless-fast-charging-mount" rel="nofollow noreferrer">https://www.wavemotion.gr/shop/smartphone-accessories/easy-one-touch-wireless-fast-charging-mount</a></p>
  
  <p>I am trying to get the availability of the product by using the following</p>
  
  <pre><code>For i = 2 To lastrow
  
  mylink = wks.Cells(i, 2).Value
  
  ie.Navigate mylink
  
  While ie.Busy Or ie.ReadyState &lt; 4: DoEvents: Wend
  t = Timer
  Do
      DoEvents
      On Error Resume Next
  
      Set instock = ie.Document.querySelector(".stock.in-stock").innerText
  
      If instock Is Nothing Then
      Set availability = ie.Document.querySelector(".stock.out-of-stock").innerText
      Else
      Set availability = instock
      End If
  
      wks.Cells(i, "D") = availability
  
  
      If Timer - t &gt; MAX_WAIT_SEC Then Exit Do
      On Error GoTo 0
  Loop
  
  Next i
  </code></pre>
  
  <p>But I get allways <strong>nothing</strong> on </p>
  
  <pre><code>Set instock = ie.Document.querySelector(".stock.in-stock").innerText
  </code></pre>
  
  <p>I checked the query on</p>
  
  <p><a href="https://try.jsoup.org/" rel="nofollow noreferrer">https://try.jsoup.org/</a></p>
  
  <p>It is working </p>
  
  <p>What I am doing wrong here? There is not any id to target only class name </p>
  
  <pre><code>&lt;p class="stock in-stock"&gt;Διαθέσιμο&lt;/p&gt;
  </code></pre>