📜  检查元素可见 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:32.285000             🧑  作者: Mango

代码示例2
if(driver.findElement(By.cssSelector("a > font")).isDisplayed())
{ System.out.println("Element is Visible"); 
}else{ System.out.println("Element is InVisible"); }