Esempio n. 1
0
        public bool Verify()
        {
            foreach (IWebElement naviLink in _topNavigationLinks)
            {
                String href = naviLink.GetAttribute("href");

                _response = HttpRequestDispatcher.Perform(href);

                if (_response.StatusCode == HttpStatusCode.OK)
                {
                    continue;
                }
                else
                {
                    _erroringLinks.Add(href);
                    continue;
                }
            }

            if (_erroringLinks.Count == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }