title: How to Click on a Text in Selenium Webdriver 2.x
body: <p>I am not able to click on the below HTML values through selenium webdriver click command through Java.</p>
  
  <p>Here's my HTML...I have to click on <em>PAAcctAcctRels</em>, <em>PAAcctActivityData</em>, etc. as in the HTML.</p>
  
  <p>I tried with LinkText (<code>driver.findElement(By.linkText("PAAcctAcctRels")).click();</code>) and xpath (<code>driver.findElement(By.xpath(".//[@id='primaryNavLevel2Z6_G868H4S0K881F0AAEO37LG28N0']/div[1]/a")).click();</code>)</p>
  
  <pre><code>&lt;div id="primaryNavLevel2Z6_0G5A11K0KGF200AIUB98T20G52" class="dropdown_1columns"&gt;
    &lt;div class="col_1"&gt;
      &lt;a class="" href="?uri=nm:oid:Z6_0G5A11K0KGF200AIUB98T20G53"&gt;
        &lt;strong&gt;
          &lt;span lang="en" dir="ltr"&gt;
            PAAcctAcctRels
            &lt;span class="wpthemeAccess"&gt; currently selected&lt;/span&gt;
          &lt;/span&gt;
        &lt;/strong&gt;
      &lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="col_1"&gt;
      &lt;a class="" href="?uri=nm:oid:Z6_0G5A11K0KGF200AIUB98T20GD4"&gt;
        &lt;span lang="en" dir="ltr"&gt;PAAcctActivityData&lt;/span&gt;
      &lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="col_1"&gt;
      &lt;a class="" href="?uri=nm:oid:Z6_0G5A11K0KGF200AIUB98T20GT1"&gt;
        &lt;span lang="en" dir="ltr"&gt;PAAcctAddrEmail&lt;/span&gt;
      &lt;/a&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Is there any other way to do this..please let me know.</p>