to check visible code example
Example: to check visible
if(driver.findElement(By.cssSelector("a > font")).isDisplayed())
{ System.out.println("Element is Visible"); }
else{ System.out.println("Element is InVisible"); }
if(driver.findElement(By.cssSelector("a > font")).isDisplayed())
{ System.out.println("Element is Visible"); }
else{ System.out.println("Element is InVisible"); }