title: Is there a way to ignore upper case when trying to find a link by linkText with Webdriver?
body: <p>I am using Selenium 2 Webdriver.</p>
  
  <p>I want to click on a link but the link text can be "Linktext" or "LINKTEXT". Is ther a better way than that:</p>
  
  <pre><code>List&lt;WebElement&gt; list = driver.findElements(By.linkText("Linktext"));
  if(list.size()&gt;0){
      driver.findElement(By.linkText("Linktext")).click();
  } else {
      driver.findElement(By.linkText("LINKTEXT")).click();
  }
  </code></pre>
  
  <p>API and google didnt really help me. Any ideas how to ignore upper case?</p>