1.is(':visible')
2//Selects all elements that are visible.
3
4if($('#Div').is(':visible')){
5 // add whatever code you want to run here.
6}
7
8$('#yourDiv:visible').callYourFunction();
1if(driver.findElement(By.cssSelector("a > font")).isDisplayed())
2{ System.out.println("Element is Visible");
3}else{ System.out.println("Element is InVisible"); }
4