I have the following HTML code:
2
Changing css=a@href to href should do the trick. Let me if this did not work.
List ele = driver.findElements(By.className("c")); for(WebElement e : ele) { String doctorname = e.getText(); String linkValue = e.getAttribute("href"); }