title: Why am I being thrown a NullReferenceException when I try to find an element?
body: <p>I am currently working on a bo that goes in a search bar, selects an element, and gets its <code>href</code> link. I am using  the following code and I got  <code>NullReferenceExceptions</code> thrown. Does anyone know why?</p>
  
  <pre><code>    webBrowser1.Navigate("https://us.octobersveryown.com/search?q=shirt");
      Thread.Sleep(1000);
      String test = webBrowser1.Document.GetElementsByTagName("body")[0].GetAttribute("class");
  </code></pre>
  
  <p>Thanks,
  Nickolas </p>