I am using selenium to get href attribute, lLinks are my web element that has a "href" attribute.
String url = lLinks.getAttrbute("href");
If the href of my 'a' tag is a relative path like <a href='/home'>Home</a>
, the url will return http://www.domain.com/home.
How do I get the url to just equal to the exact text of the href attribute?