TestAutomationEssentials.Selenium.BrowserElement.IsAvailable C# (CSharp) Method

IsAvailable() static private method

static private IsAvailable ( IWebElement el ) : bool
el IWebElement
return bool
        internal static bool IsAvailable(IWebElement el)
        {
            try
            {
                return el.Displayed;
            }
            catch (StaleElementReferenceException)
            {
                Logger.WriteLine("Warning: Stale element is caught");
                return false;
            }
        }