Beispiel #1
0
        public void TakeScreenshots()
        {
            driver.Navigate().GoToUrl(baseURL);
            Thread.Sleep(1000);
            captureImage();
            Thread.Sleep(1000);

            HomeSearchBatman homePage = new HomeSearchBatman(driver);

            homePage.writeSearch("Batman");
            Thread.Sleep(2000);
            captureImage();
            Thread.Sleep(1000);

            AddProductBatmanCart addProductCart = new AddProductBatmanCart(driver);

            addProductCart.addProduct();
            Thread.Sleep(10000);
            captureImage();
            Thread.Sleep(1000);

            SearchPS2 searchPS2 = new SearchPS2(driver);

            searchPS2.writeSearch("PS2");
            Thread.Sleep(2000);
            captureImage();
            Thread.Sleep(1000);
        }
Beispiel #2
0
        public void searchProductsAndAddCart()
        {
            HomeSearchBatman homePage = new HomeSearchBatman(webDriver);

            homePage.writeSearch("Batman");
            Thread.Sleep(2000);

            AddProductBatmanCart addProductCart = new AddProductBatmanCart(webDriver);

            addProductCart.addProduct();
            Thread.Sleep(10000);

            SearchPS2 searchPS2 = new SearchPS2(webDriver);

            searchPS2.writeSearch("PS2");
            Thread.Sleep(2000);
        }