Example #1
0
        public void WhenUserClicksOnAddToCartButton()
        {
            Utilities ut  = new Utilities(Driver);
            PDPPage   pdp = new PDPPage(Driver);

            ut.ClickOnElement(pdp.addButton);
        }
Example #2
0
        public void ThenCartPageIsOpened()
        {
            PDPPage pdpp = new PDPPage(Driver);

            Assert.True(ut.ElementDisplayed(pdpp.cColumn));
            //za then treba nova classa jer prelazimo na novi Page
        }
Example #3
0
        public void GivenIncreasesQuantityTo(string qty)
        {
            Utilities ut = new Utilities(Driver);

            Driver.SwitchTo().Frame(Driver.FindElement(By.ClassName("fancybox-iframe")));
            PDPPage pdp = new PDPPage(Driver);

            Driver.FindElement(pdp.quantity).Clear();
            ut.EnterTextInElement(pdp.quantity, qty);
            string productName = ut.ReturnTextFromElement(pdp.productName);
        }
Example #4
0
        public void GivenInceasesQuantityTo(string qty)
        {
            Utilities ut  = new Utilities(Driver);
            PDPPage   pdp = new PDPPage(Driver);

            Driver.FindElement(pdp.quantity).Clear();
            ut.EnterTextInElement(pdp.quantity, qty);
            string productName = ut.ReturnTextFromElement(pdp.productName);

            ScenarioContext.Current.Add(TestConstants.ProductName, productName);
        }
Example #5
0
        public void GivenIncreasesQuantityTo(string qty)
        {
            Utilities ut = new Utilities(Driver);

            Driver.SwitchTo().Frame(Driver.FindElement(By.ClassName("fancybox-iframe")));
            PDPPage pd = new PDPPage(Driver);

            Driver.FindElement(pd.quantity).Clear();
            ut.EnterTxtInElement(pd.quantity, qty);
            string productName = ut.ReturnTextFromElement(pd.productName);

            ScenarioContext.Current.Add(TestConstats.ProductName, productName);
        }
Example #6
0
        public void WhenUserProceedsToCheckout()
        {
            PDPPage pdpp = new PDPPage(Driver);

            ut.ClickOnElement(pdpp.proCheck);
        }
Example #7
0
        public void WhenUserClicksOnAddToCartButton()
        {
            PDPPage pdpp = new PDPPage(Driver);

            ut.ClickOnElement(pdpp.addCBtn);
        }