title: How to verify links
body: <p>How to verify whether links are present or not?</p>
  
  <p>eg.
  I have 10 links in a page, I want to verify the particular link</p>
  
  <p>Is it possible? 
  I am using selenium with Java.</p>
  
  <p>Does i can write inside the selenium code</p>
  
  <p>eg</p>
  
  <pre><code>selenium.click("searchimage-size");    
  selenium.waitForPopUp("dataitem", "3000");    
  selenium.selectWindow("name=dataitem");    
  
  foreach(var link in getMyLinkTextsToTest())    
  {
      var elementToTest = driver.findElement(By.linkText(link));    
      Assert.IsNotNull(elementToTest);    
  }
  </code></pre>