private void UpdateUserInput(object sender, RoutedEventArgs e) { focussedRow = UserDataGrid.SelectedIndex; userFormPage = new UserFormPage(this, userList[focussedRow]); UserFormFrame.Content = userFormPage; NewFormDialog.IsOpen = true; }
public void WhenIEnterTheFollowingFormDetails(Table table) { var details = table.CreateInstance <UserCredentials>(); _userFormPage = new UserFormPage(_driver); _userFormPage.FillForm(details.Initial, details.FirstName, details.MiddleName); }
public void FillOutFormWithValidData() { var userFormPage = new UserFormPage(m_Driver); userFormPage.GoToHomePage(); userFormPage.FillOutUserForm("Mr.", "J", "Jose", "carrera", true, "english"); userFormPage.ClickSaveButton(); }
public void GivenUserEntersBelowDetails(Table table) { User user = table.CreateInstance <User>(); userFormPage = new UserFormPage(driver); userFormPage.selectTitle(user.Title); userFormPage.enterInitial(user.Initial); userFormPage.firstName(user.FirstName); userFormPage.middleName(user.MiddleName); userFormPage.gender(user.Gender); userFormPage.language(user.LanguagesKnown); }
public void FillOutFormWithValidData_stepByStep() { var userFormPage = new UserFormPage(m_Driver); userFormPage.GoToHomePage(); userFormPage.SelectTitle("Mr."); userFormPage.EnterInitial("j"); userFormPage.EnterFirstName("Jose"); userFormPage.EnterMiddleName("carrera"); userFormPage.SelectGender(true); userFormPage.SelectKnownLanguage("English"); userFormPage.ClickSaveButton(); }
public static Page GetPage(ApplicationPages page) { Page result = null; using (_pageLocker.GetUpgradeableReadLock()) { if (!_pages.ContainsKey(page)) { using (_pageLocker.GetWriteLock()) { if (!_pages.ContainsKey(page)) { switch (page) { case ApplicationPages.UserFormPage: _pages[page] = (result = new UserFormPage { DataContext = new UserFormViewModel() }); break; case ApplicationPages.IssuePage: _pages[page] = (result = new IssuePage { DataContext = new IssueViewModel() }); break; case ApplicationPages.TimeOverPage: _pages[page] = (result = new TimeOverPage()); break; case ApplicationPages.ResultPage: _pages[page] = (result = new ResultPage { DataContext = new ResultViewModel() }); break; } } } } else { result = _pages[page]; } } return(result); }
public ExecutionResult Execute(WebTestHelper helper) { var driver = helper.Driver; //Navigate to the app driver.Navigate().GoToUrl("http://executeautomation.com/demosite/Login.html"); //Login LoginPage loginPage = new LoginPage(driver); loginPage.PerformLogin("admin", "admin"); //UserForm UserFormPage userFormPage = new UserFormPage(driver); userFormPage.EnterUserForm("Mr", "Karthik", "KK", "Hindi"); return(ExecutionResult.Passed); }
public void WhenUserTypeAnyUserNameAndPasswordThereforePressLogin() { userFormPage = loginPage.Login(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword()); }
public static Page GetPage(ApplicationPages page) { Page result = null; using (_pageLocker.GetUpgradeableReadLock()) { if (!_pages.ContainsKey(page)) { using (_pageLocker.GetWriteLock()) { if (!_pages.ContainsKey(page)) { switch (page) { case ApplicationPages.UserFormPage: _pages[page] = (result = new UserFormPage {DataContext = new UserFormViewModel()}); break; case ApplicationPages.IssuePage: _pages[page] = (result = new IssuePage {DataContext = new IssueViewModel()}); break; case ApplicationPages.TimeOverPage: _pages[page] = (result = new TimeOverPage()); break; case ApplicationPages.ResultPage: _pages[page] = (result = new ResultPage {DataContext = new ResultViewModel()}); break; } } } } else result = _pages[page]; } return result; }
public void ThenIShouldSeeUserLoggedInToTheApplication() { _userFormPage = new UserFormPage(_driver); Assert.IsTrue(_userFormPage.IsBrowserOnUserFormPage(), "Log in unsuccessful"); }
public HomeSteps(UserFormPage userFormPage) { _userFormPage = userFormPage; }
public void ThenIShouldBeRedirectedToTheFormPage() { _userFormPage = new UserFormPage(_driver); Assert.IsTrue(_userFormPage.IsBrowserOnUserFormPage(), "Browser not on user form page"); }
private void ShowNewUserForm(object sender, RoutedEventArgs e) { userFormPage = new UserFormPage(this); UserFormFrame.Content = userFormPage; NewFormDialog.IsOpen = true; }