public void GivenIAmOnTheAddACourseForm() { //webDriver.Url = Configurator.GetConfiguratorInstance().GetBaseUrlCourses() + "/AddCourseSection1"; webDriver.Url = Configurator.GetConfiguratorInstance().GetBaseUrl() + "//Courses//AddCourseSection1"; Console.WriteLine("url=" + webDriver.Url); AddCoursePage AddCoursePage = new AddCoursePage(webDriver); }
public void GivenIHaveSpecifiedWhoTheCourseIsFor(string p0) { if (p0 == "blank") { p0 = ""; } AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterWhoCourseFor(p0); }
public void TeachersAddCourse_Creates_CourseWithGivenName() { Random randomNumber = new Random(); string courseName = "MyTestCourse " + randomNumber.Next(100, 10000000); HomePage homePage = new HomePage(webDriver); homePage.GoToPage(); LoginPage loginPage = homePage.GoToLoginPage(); loginPage.Login("*****@*****.**", "P@ssword1"); TeachersIndexPage indexPage = new TeachersIndexPage(webDriver); indexPage.GoToPage(); AddCoursePage addCoursePage = indexPage.GotoAddCoursePage(); addCoursePage.Save(courseName, "My Test Course Desc"); Assert.IsTrue(indexPage.CourseExists(courseName)); }
public void ConfirmInfoMessage(string field, string errorMsg) { AddCoursePage addCoursePage = new AddCoursePage(webDriver); addCoursePage.ConfirmInfoMessage(field, errorMsg); }
private void AddStudent_Click(object sender, RoutedEventArgs e) { AddCoursePage acp = new AddCoursePage(this.CoursesGrid); acp.Show(); }
public void ThenAddCoursePageShouldBeDisplayed() { AddCoursePage addCoursePage = new AddCoursePage(webDriver); }
public void NextStepsFollowingCompletionOfTheCourseLevelOfThisCourse(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.NextSteps(p0); }
public void GivenIHaveEnteredWhatEquipmentWillBeNeeded(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterEquipmentNeeded(p0); }
public void ThenIShouldBeTakenToAddCourseScreen_() { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); }
public void GivenIHaveClickedNext() { AddCoursePage addCoursePage = new AddCoursePage(webDriver); addCoursePage.ClickNext(); }
public void GivenIHaveEnteredTheFollowingInCourseDescription(string strCourseDesc) { AddCoursePage addCoursePage = new AddCoursePage(webDriver); addCoursePage.EnterWhoCourseFor(strCourseDesc); }
public void ThenTheFirstPageOfAddCourseShouldBeDisplayed() { AddCoursePage addCoursePage = new AddCoursePage(webDriver); }
public void GivenIHaveEnterTheNextStepFollowingCompletionOfTheCourseLevelOfThisCourse(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterWhoCourseFor(p0); }
public void GivenIHaveSpecifiedWhoTheCourseIsFor(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterWhoCourseFor(p0); }
public void GivenIHaveEnteredTheEntryRequirements(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterEntryRequirements(p0); }
public void GivenIHaveEnteredHowTheStudentWillLearn(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.EnterHowYoullLearn(p0); }
public void GivenIAmOnTheAddACourseForm() { webDriver.Url = Configurator.GetConfiguratorInstance().GetBaseUrl() + "//Courses//AddCourseSection1"; AddCoursePage AddCoursePage = new AddCoursePage(webDriver); }
public void GivenIHaveEnteredHowTheStudentWillBeAssessed(string p0) { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.HowAssessed(p0); }
public void ThenThereShouldBeAErrorSummaryOnTheTopWithHeader(string strHeadMsg) { AddCoursePage addCoursePage = new AddCoursePage(webDriver); addCoursePage.ValidateHeaderMessage(strHeadMsg); }
public void WhenIClickNextButtonFail() { AddCoursePage AddCoursePage = new AddCoursePage(webDriver); AddCoursePage.ClickNextFail(); }
public void ThenTheSameErrorMessageDisplayedOnTop(string strSummErrMsg) { AddCoursePage addCoursePage = new AddCoursePage(webDriver); addCoursePage.ValidateSummaryErrorMessage(strSummErrMsg); }