Example #1
0
        public void Add_To_Cart_From_Main_Page_Logged()
        {
            LoginPageObject pageObject = new LoginPageObject();
            LoginPageObject pagelogin  = pageObject.Login("*****@*****.**", "Selenium1");

            PropertiesCollection.driver.Navigate().GoToUrl("http://automationpractice.com/index.php");

            SelectClothes pageClothes = new SelectClothes();

            SelectClothes FirstShirt = pageClothes.SelectFirstShirt();
        }
Example #2
0
        public void Add_To_Cart_After_Select_Item_Logged()
        {
            //logowanie
            LoginPageObject pageObject = new LoginPageObject();
            LoginPageObject pagelogin  = pageObject.Login("*****@*****.**", "Selenium1");

            //powrot do glownej strony
            PropertiesCollection.driver.Navigate().GoToUrl("http://automationpractice.com/index.php");

            SelectClothes pageClothes = new SelectClothes();
            //wybranie podstrony z szczegółami
            SelectClothes Selectseconditem = pageClothes.SelectSecondBlouse();

            //refresh strony aby można było zczytać dobre ID i Name
            PropertiesCollection.driver.Navigate().Refresh();


            ItemDetails pageDetails     = new ItemDetails();
            ItemDetails SelectSize      = pageDetails.SelectSizeFromDDL("M");
            ItemDetails SelectAddToCart = pageDetails.ClickAddToCart();
        }