Pergunta de entrevista da empresa EPAM Systems

Webdriver Wait for control Present

Resposta da entrevista

Sigiloso

25 de jun. de 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; });