コード例 #1
0
        public void SubmitApplication()
        {
            using (IWebDriver driver = new FirefoxDriver())
            {
                var applicationPageModel = new ApplicationPageModel(driver);

                applicationPageModel.NavigateToApplicationPage();

                applicationPageModel.EnterFirstName("Rashiid");
                applicationPageModel.EnterLastName("Jama");
                applicationPageModel.ClickLoan();
                applicationPageModel.ClickAcceptTerms();
                applicationPageModel.ClickSubmit();

                IWebElement ConfirmationNameSpan = driver.FindElement(By.Id("firstName"));
                string      confirmationName     = ConfirmationNameSpan.Text;
                Assert.Equal("Rashiid", confirmationName);
            }
        }