title: How To Check If Element Is Visible In Web Browser In VB.net?
body: <p>I want to check if an element is visible (i.e. has not set to display: none, visibility: hidden) in browser element but IN VB.Net</p>
  
  <p>How can I do that? I googled but didn't found anything, not even in official documents.</p>
  
  <p>The element is like:</p>
  
  <pre><code>&lt;div id="elem"&gt;
  &lt;a href="DYNAMIC LINK"&gt;Link&lt;/a&gt;
  &lt;a href="DYNAMIC LINK"&gt;Link&lt;/a&gt;
  &lt;a href="DYNAMIC LINK"&gt;Link&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And now I want to select 2nd  tag, and check if its visible. My questions:</p>
  
  <ol>
  <li>How do I check if second  exists?</li>
  <li>How do I select second  tag above?</li>
  <li>How do I check if its visible</li>
  </ol>
  
  <p>I tried:</p>
  
  <pre><code>If (downloadSite.Document.GetElementById("elem").GetElementsByTagName("a")[1] IsNot Nothing) 
  ' Working
  End If
  </code></pre>
  
  <p>But it doesn't work.</p>