public void GivenINavigateToLoanPage() { _driver = new ChromeDriver(@"C:\Users\dowen\AppData\Local\Google\Chrome\Application\"); _driver.Manage().Window.Maximize(); _loanApplicationPage = LoanApplicationPage.NavigateTo(_driver); }
public void GivenIAmOnTheLoanApplicationScreen() { _driver = new LocalChromeDriver(); _driver.Manage().Window.Maximize(); //_driver.Navigate().GoToUrl("http://localhost:40077/Home/StartLoanApplication"); _loanApplicationPage = LoanApplicationPage.NavigateTo(_driver); }
public void GivenIAmOnTheLoanApplicationScreen() { _driver = new FirefoxDriver(); _context.Driver = _driver; _context.Driver.Manage().Window.Maximize(); //_driver.Navigate().GoToUrl("http://localhost:40077/Home/StartLoanApplication"); _loanApplicationPage = LoanApplicationPage.NavigateTo(_context.Driver); _context.LoanApplicationPage = _loanApplicationPage; }
public void GivenIAmOnTheLoanApplicationPage() { FirefoxOptions options = new FirefoxOptions(); options.AcceptInsecureCertificates = true; _driver = new FirefoxDriver(options); _driver.Manage().Window.Maximize(); _driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(3); _loanPage = LoanApplicationPage.NaviateTo(_driver); //_driver.Navigate().GoToUrl("http://localhost:44344/Home/StartLoanApplication"); }
public void SubmitApplication() { using (IWebDriver driver = new FirefoxDriver()) { driver.Manage().Window.Maximize(); /* * driver.Navigate().GoToUrl("http://localhost:40077/Home/StartLoanApplication"); * * IWebElement firstNameInput = driver.FindElement(By.Id("FirstName")); * firstNameInput.SendKeys("Sarah"); * * driver.FindElement(By.Id("LastName")).SendKeys("Smith"); * * * driver.FindElement(By.Id("Loan")).Click(); * * * driver.FindElement(By.Name("TermsAcceptance")).Click(); * * * driver.FindElement(By.CssSelector(".btn.btn-primary")).Click(); * * * IWebElement confirmationNameSpan = driver.FindElement(By.Id("firstName")); */ var page = LoanApplicationPage.NavigateTo(driver); page.FirstName = "Sarah"; page.SecondName = "Smith"; page.SelectExistingLoan(); page.AcceptTermsAndConditions(); var confPage = page.SubmitApplication(); //confPage.FirstName = "Sarah"; //string confirmationName = confirmationNameSpan.Text; var confirmationName = confPage.FirstName; Assert.Equal("Sarah", confirmationName); } }