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(); }
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 PersonalInfoPage CreateDefaultPersonal(IWebDriver driver) { PersonalInfoPage PIP = new PersonalInfoPage(driver); return(PIP.withName("Larry", "Rregular") .withSSN("456550022") .withDOB("3", 6, "1995") .withID("2", "7564345437", "FL") .withNoMillitary() .withAddress("6301 w Berenice ave", "Huntsville", "AL", "35754") .withAPT("APT", "25") .withRentRadio() .withMovinDate("3", "2014") .withMobilePhone("4328765488")); }
public void PositiveTest() { PersonalInfoPage.CreateDefaultPersonal(driver) .withName("Tonny", "Run") .UseParameters() .UseParametersDoB() .UseParametersID() .UseParametersAddress() .UseParametersAPT() .UseParametersMovinDate() .UseParametersMobilePhone() .Submit(); result = VerifyURL.ValidateURL(driver, "https://secure.aviocredit.com.train/LoanApplication/Income"); Assert.IsTrue(result); }