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); }
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); }
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; } }
public void WhenUserClicksCloseButtonOnThisScreen() { CustomControls.click(PageObjects.Login_Screen(10), propertytype.CssSelector); }
public void WhenUserClicksButtonRecoverPassword() { CustomControls.click(PageObjects.Login_Screen(8), propertytype.CssSelector); }
public void GivenClicksOnForgotPasswordLink() { CustomControls.click(PageObjects.Login_Screen(6), propertytype.CssSelector); }