WebElement element = driver.findElement(By.linkText ("home")); WebElement element = driver.findElement(By.linkText ("courses"));
driver.find_element_by_link_text()