EPAM Systems interview question

Webdriver Wait for control Present

Interview Answer

Anonymous

Jun 25, 2018

var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(timeoutInSeconds)); wait.IgnoreExceptionTypes(typeof(Exception)); return wait.Until(drv => { if (!displayed && !element.Displayed || displayed && element.Displayed) return true; return false; });