Пример #1
0
        /// <summary>Checks that element is displayed in Web page.</summary>
        /// <returns>True if element is displayed; otherwise, false.</returns>
        public bool IsDisplayed()
        {
            if (_isTimeToWaitDefined)
            {
                try
                {
                    _element.Assert(_timeToWait).IsDisplayed();
                    return(true);
                }
                catch (Exception)
                {
                    return(false);
                }
            }

            try
            {
                _element.Assert().IsDisplayed();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }