Example #1
0
        public bool checkIfAnElementIsVisible(By byElement)
        {
            IWebElement          element       = null;
            WebElementExtensions eleExtensions = new WebElementExtensions();

            if (eleExtensions.TryFindElement(driver, byElement, out element))
            {
                bool visible = eleExtensions.IsElementVisible(element);
                if (visible)
                {
                    return(true);
                }
            }
            return(false);
        }