Here is the code,
<div id="user-tools">
Welcome
<strong>Admin</strong>
/
<a href="/">View</a>
/
<a href="/admin/password_change>Change password</a>
/
</a href="/admin/logout/">Log out</a>
</div>
And I am trying to use this way to click the "Log out" link, but no luck.
driver.findElement(By.xpath("//a[@href='/admin/logout/'])".click();
Any ideas ? Thanks.