How to get the exact text of href attribute of tag a?
<p>I am using selenium to get href attribute, lLinks are my web element that has a "href" attribute.</p>

<pre><code>String url = lLinks.getAttrbute("href");
</code></pre>

<p>If the href of my 'a' tag is a relative path like <code>&lt;a href='/home'&gt;Home&lt;/a&gt;</code>
, the url will return <a href="http://www.domain.com/home" rel="nofollow">http://www.domain.com/home</a>.</p>

<p>How do I get the url to just equal to the exact text of the href attribute?</p>