Exemplo n.º 1
0
        public bool CheckLogsWhenProductOpen()
        {
            var count = WebDriver.Driver.FindElements(By.CssSelector("td > img")).Count;

            for (var i = 0; i < count; i++)
            {
                IList <IWebElement> list = WebDriver.Driver.FindElements(By.XPath("//td/img/../a"));
                BaseSelenium.Click(list[i]);
                if (WebDriver.CheckBrowserLog())
                {
                    WebDriver.PrintBrowserLog();
                    return(false);
                }
                WebDriver.Driver.Navigate().Back();
            }
            return(true);
        }