public static IWebElement FindWebElement(By by) { try { return WebDriver.FindElement(by); } catch (StaleElementReferenceException) { Wait(2); return WebDriver.FindElement(by); } catch (Exception) { return null; } }