public void Setup() { driver = new ChromeDriver(); driver.Navigate().GoToUrl("https://www.aviocredit.com.train/"); AccountInfoPage.CreateDefaultAccount(driver).IDCredentials().Submit(); PersonalInfoPage.CreateDefaultPersonal(driver).UseParameters().UseParametersDoB().UseParametersID().UseParametersAddress().UseParametersAPT().UseParametersMovinDate().UseParametersMobilePhone().Submit(); IncomeInfoPage.CreateDefaultIncome(driver).UseParametersSourceOfIncome().UseParamatersEmployerNamePhone().UseParametersHireDate().UseParametersPaycycle(); IncomeInfoPage.CreateDefaultIncome2(driver).UseParametersGrossNetPay().Submit(); }
public static IncomeInfoPage CreateDefaultIncome(IWebDriver driver) { IncomeInfoPage IIP = new IncomeInfoPage(driver); return(IIP.withSourseOfIncome("E") .withEmployerNamePhone("Company", "7765526585") .withHireDate("10", "2017") .withPaycycle("BiWeekly")); }
public static IncomeInfoPage CreateDefaultIncome2(IWebDriver driver) { IncomeInfoPage IIP = new IncomeInfoPage(driver); return(IIP.withLastPayDateDropdown() .withDatePicker() .withYesDirectDeposit() .withMonthlyFrequency() .withGrossNetPay("3000", "2600")); }
public void PositiveTest() { IncomeInfoPage.CreateDefaultIncome(driver) .withEmployerNamePhone("Curo", "7797463362") .UseParametersSourceOfIncome() .UseParamatersEmployerNamePhone() .UseParametersHireDate() .UseParametersPaycycle(); IncomeInfoPage.CreateDefaultIncome2(driver) .withGrossNetPay("4000", "3000") .UseParametersGrossNetPay() .Submit(); }