title: get href value (WebDriver)
body: <p>How do I get a value from href?</p>
  
  <p>like this eg:</p>
  
  <pre><code>&lt;div id="cont"&gt;&lt;div class="bclass1" id="idOne"&gt;Test&lt;/div&gt;
  
      &lt;div id="testId"&gt;&lt;a href="**NEED THIS VALUE AS STRING**"&gt;
      &lt;img src="img1.png" class="clasOne" /&gt;
      &lt;/a&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need that value as string.</p>
  
  <p>I've tried with this:</p>
  
  <pre><code>String e = driverCE.findElement(By.xpath("//div[@id='testId']")).getAttribute("href");
              JOptionPane.showMessageDialog(null, e);
  </code></pre>
  
  <p>But just returns NULL value...</p>