Esempio n. 1
0
        public void GivenUserFillsInRequiredFieldsAsBelow(Table Forget_pass)
        {
            implicitwait.ImplicitWait(3);
            dynamic forget_pass = Forget_pass.CreateDynamicInstance();

            CustomControls.Entertext(PageObjects.Login_Screen(1), forget_pass.site_id, propertytype.CssSelector);
            CustomControls.Entertext(PageObjects.Login_Screen(7), forget_pass.enter_email, propertytype.CssSelector);
        }
Esempio n. 2
0
        public void TestMethodfillLogin()
        {
            string acualresultofsavedamount = Calculations.calculatesavedamount("1000", "10");

            Console.WriteLine("The calculated saved amount from test is " + " " + acualresultofsavedamount);
            string savedamount = CustomControlGets.GettextfromLabel(PageObjects.savedAmount(), propertytype.CssSelector);

            Console.WriteLine("The saved ammount refelected from application is" + " " + savedamount);
            Assertions.assertionequals(acualresultofsavedamount, savedamount);
            string Amountafterdiscount = CustomControlGets.Geettextfromtextbox("afterDiscount", propertytype.Model);

            Console.WriteLine("This is the amount to be paidis    " + Amountafterdiscount);
        }
Esempio n. 3
0
        public void ThenALableShouldReadShouldDisplayOnTheScreen(string label)
        {
            string actual_labele_display = CustomControlGets.GettextfromLabel(PageObjects.Login_Screen(9), propertytype.CssSelector);

            try
            {
                Assertions.assertionequals(label, actual_labele_display);
            }
            catch (Exception e)
            {
                Console.WriteLine("The test failed because expected label is not there");
                throw;
            }
        }
Esempio n. 4
0
 public void WhenUserClicksCloseButtonOnThisScreen()
 {
     CustomControls.click(PageObjects.Login_Screen(10), propertytype.CssSelector);
 }
Esempio n. 5
0
 public void WhenUserClicksButtonRecoverPassword()
 {
     CustomControls.click(PageObjects.Login_Screen(8), propertytype.CssSelector);
 }
Esempio n. 6
0
 public void GivenClicksOnForgotPasswordLink()
 {
     CustomControls.click(PageObjects.Login_Screen(6), propertytype.CssSelector);
 }