how to select login button using selenium web driver
<li id="buttons" class="greetings_fmt">
<a href="#">
<div class="user_btn log_in_icon">LOG IN</div>
</a>
<a href="#">
<div class="user_btn sign_up_icon">SIGN UP</div>
</a>
</li>
tried with this code but not working
WebElement ele = driver.findElement(By.id("buttons"));
List<WebElement> ele1 = ele.findElements(By.tagName("a"));
for(WebElement e : ele1){
e.click()
}