title: Getting a specific data from webpage using only class items
body: <p>I have a source code on a webpage that I wish to extract (I've narrowed it down to exactly what is relevant here:</p>
  
  <pre><code>    &lt;div class="sideInfoPlayer"&gt;
  &lt;a class="signLink" href="spieler.php?uid=12345" title="Profile"&gt;
      &lt;span class="wrap"&gt;Wagamama&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Now the trick here is that I want to get the word Wagamama into a message box but that word changes on every page of that site so I need to get that element but there is no ID on this page. Therefore I was thinking of doing a search for the class named "sideInfoPlayer" first and then find the "wrap" class within the previous class block.</p>
  
  <p>I have written the below to get the first one but do not know how to tackle the second one and then get the desired value.</p>
  
  <pre><code>        HtmlElementCollection col = webBrowser1.Document.GetElementsByTagName("div");
          foreach (HtmlElement element in col)
          {
              string cls = element.GetAttribute("className");
              if (String.IsNullOrEmpty(cls) || !cls.Equals("sideInfoPlayer"))
                  continue;
          }
  </code></pre>
  
  <p>I hope you can help unstuck me on this one.</p>