I have div and hyperlink like this:
<div id="food-add-actions" class="actions food_dialog fd_food_dialog_s-fndds2-f41210000">
<div class="right">
<a href="Javascript://" class="food-add-button add button"><span></span><span>Add to Food Log</span></a>
<a href="Javascript://" class="edit button"><span></span><span>Edit</span></a>
</div>
</div>
how can i click on this Edit
hyperlink?
i tried below but it did not worked for me
driver.findElement(By.className("edit button")).click();