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")); }
public void SwitchPage(int pageNumber) { HoverElement(BrowseConstant.PAGINATION); Click(BrowseConstant.GetPageElement(pageNumber)); }