private static void StartWait() { DefaultWait <IWebDriver> wait = new DefaultWait <IWebDriver>(_driver) { Timeout = TimeSpan.FromMinutes(5), PollingInterval = TimeSpan.FromSeconds(2) }; _wait.IgnoreExceptionTypes(typeof(NoSuchElementException)); _wait.IgnoreExceptionTypes(typeof(StaleElementReferenceException)); }
public void Init() { var driverFactory = new FirefoxDriverFactory(); _driver = driverFactory.Create(); _wait = new WebDriverWait(_driver, TimeSpan.FromSeconds(20)); _wait.IgnoreExceptionTypes(typeof(NoSuchElementException)); _logger = LogManager.GetLogger(GetType()); _logger.Debug($"{TestContext.CurrentContext.Test.ClassName} OneTimeSetup"); }