Exemplo n.º 1
0
        public QuickViewPage quickViewProduct(string strProductName)
        {
            foreach (var Product in collProducts)
            {
                if (Product.GetAttribute("title") == strProductName)
                {
                    Actions action = new Actions(PropertiesCollection.driver);
                    action.MoveToElement(Product).Perform();
                    break;
                }
            }
            Thread.Sleep(6000);
            WebDriverWait wait    = new WebDriverWait(PropertiesCollection.driver, TimeSpan.FromSeconds(16));
            var           element = wait.Until(ExpectedConditions.ElementIsVisible(By.LinkText("Quick view")));

            ViewProduct.Click();
            return(new QuickViewPage());
        }