Java code to click a hyperlink

public void clickLink(WebDriver driver, WebDriverWait wait, String xpath)
{
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xpath)));
WebElement element = driver.findElement(By.xpath(xpath));
element.click();
}

Web element

Wake up