Example #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);
        }
Example #2
0
        public void ThenSwitchToOtherBrowserWindowAndNavigateTo(string office_url)
        {
            PropertiesCollection.ngdriver.Navigate().GoToUrl("https://mail.google.com/mail/u/0/?tab=rm&ogbl#inbox");

            implicitwait.ImplicitWait(5);
            CustomControls.Entertext("//input[@type='email']", "*****@*****.**", propertytype.XPath);
            CustomControls.click("//div[@class='VfPpkd-RLmnJb']", propertytype.XPath);
            CustomControls.Entertext("//input[@name='password']", "abdullah@786", propertytype.XPath);
            CustomControls.click("/html[1]/body[1]/div[1]/div[1]/div[2]/div[1]/div[2]/div[1]/div[1]/div[2]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/button[1]/div[2]", propertytype.XPath);
            implicitwait.ImplicitWait(2);
        }
Example #3
0
        public void TestMethodfillLogin()
        {
            CustomControls.Entertext(PageObjects.discountonproduct("discountPercent"), "10", propertytype.Model);
            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);
        }
Example #4
0
 public void WhenUserClicksCloseButtonOnThisScreen()
 {
     CustomControls.click(PageObjects.Login_Screen(10), propertytype.CssSelector);
 }
Example #5
0
 public void WhenUserClicksButtonRecoverPassword()
 {
     CustomControls.click(PageObjects.Login_Screen(8), propertytype.CssSelector);
 }
Example #6
0
 public void GivenClicksOnForgotPasswordLink()
 {
     CustomControls.click(PageObjects.Login_Screen(6), propertytype.CssSelector);
 }
Example #7
0
 public void ThenUserFiindsSpecficEmailFromTheListContainingTitleForgotPassword()
 {
     CustomControls.click("//div[@class='xT']//span[@class='bqe'][normalize-space()='Forget Password']", propertytype.XPath);
 }