public void AddToCard_FromProductPage() { productPage = productListPage.NavigateToProductPage(driver); productPage.AddToCart(); String expectedResult = "Success: You have added " + productPageBO.ProductName + " to your shopping cart!\r\n×"; Assert.AreEqual(expectedResult, productPage.SuccessfullyUpdatedText); }
public void TestInitialize() { driver = new ChromeDriver(); driver.Manage().Window.Maximize(); driver.Navigate().GoToUrl("http://opencart.abstracta.us/"); homePage = new HomePage(driver); productListPage = homePage.NavigateToTabletsProductList(driver); productPage = productListPage.NavigateToProductPage(driver); }