Example #1
0
        public string AddFavorites(int productNumber)
        {
            By          product        = BrowseConstant.GetProductElement(productNumber);
            IWebElement productElement = FindElement(product);
            IWebElement followElement  = productElement.FindElement(By.ClassName("followBtn"));

            HoverElement(followElement);
            followElement.Click();

            return(productElement.FindElement(By.ClassName("columnContent")).GetAttribute("id"));
        }
Example #2
0
 public void SwitchPage(int pageNumber)
 {
     HoverElement(BrowseConstant.PAGINATION);
     Click(BrowseConstant.GetPageElement(pageNumber));
 }