Hello Jagdeep, Yes it is possible to use WebDriverWait to check the visibility of an element in Selenium Webdriver. You can use ExpectedConditions methods to check whether an element is visible or invisible. Following code snippet shows how to check visibility or invisibility of a web element:
System.setProperty("webdriver.chrome.driver", "D:\\chromeDriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.facebook.com");
WebElement element = driver.findElement(By.id("id"));
WebDriverWait wait = new WebDriverWait(driver,30);
// Wait and check element visibility
wait.until(ExpectedConditions.visibilityOfElementLocated(element));
// Wait and check element invisibility
wait.until(ExpectedConditions.invisibilityOf(element));