Beispiel #1
0
 public void TestInit()
 {
     this.TestInitialize();
     this.homePage         = new HomePage(this.Driver);
     this.harryPotterPage  = new HarryPotterPage(this.Driver);
     this.firstProductPage = new FirstProductPage(this.Driver);
     this.shoppingCartPage = new ShoppingCartPage(this.Driver);
 }
Beispiel #2
0
        public void AddToCartFromPage()
        {
            MainPage         mainPage    = new MainPage(webdriver);
            FirstProductPage productPage = mainPage.OpenProductPage();

            productPage.AddToCart();
            productPage.CloseDialogCart();
            productPage.CheckCart();
        }