public void WhenTheUserEditsASavedInterpreter() { var user = GetParticipantBy("Interpreter"); _browsers[_c.CurrentUser].Click(SummaryPage.EditParticipantLink(user.Firstname)); _addParticipantSteps.EditAnInterpreter(user.AlternativeEmail); }
public void WhenTheUserEditsANewParticipant() { _bookingDetailsSteps.ClickEdit(); _newUserToEdit = UserManager.GetUserFromDisplayName(_c.Test.HearingParticipants, _c.Test.AddParticipant.Participant.NewUserPrefix); _browsers[_c.CurrentUser].Click(SummaryPage.EditParticipantLink(_newUserToEdit.Firstname)); _addParticipantSteps.EditANewParticipant(_newUserToEdit.AlternativeEmail); }
public void a02_Manage_a_Classroom_course_26747() { string expectedresult = " The changes were saved."; string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent", ExtractDataExcel.MasterDic_classrommcourse["Desc"]); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); //Trainingsobj.CreateContentButton_Click_New(Locator_Training.Classroom_CourseClick); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); SearchResultsPage.ClickCourseTitle(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "editcontent"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag is displayed"); }
public void ThenTheSummaryPageDisplaysTheNewHearingDetails() { for (var i = 0; i < _c.Test.CaseNames.Count; i++) { _browser.TextOf(SummaryPage.CaseName(i)).Should().Be(_c.Test.CaseNames[i]); _browser.TextOf(SummaryPage.CaseNumber(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ScheduledDate(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.HearingId(i)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ConferenceId(i)).Should().NotBeNull(); _browser.Driver.WaitUntilVisible(SummaryPage.CopyButton(i)).Displayed.Should().BeTrue(); const int expectedNumberOfParticipants = JudgesCount + DefaultData.Individuals + DefaultData.Representatives + DefaultData.Observers + DefaultData.PanelMembers; for (var j = 0; j < expectedNumberOfParticipants; j++) { _browser.TextOf(SummaryPage.ParticipantUsername(i, j)).Should().NotBeNull(); _browser.TextOf(SummaryPage.ParticipantPassword(i, j)).Should().NotBeNull(); } for (var j = 0; j < _c.Test.Endpoints; j++) { _browser.TextOf(SummaryPage.EndpointDisplayName(i, j)).Should().StartWith(DefaultData.EndpointsPrefix); _browser.TextOf(SummaryPage.EndpointSipAddress(i, j)).Should().NotBeNull(); _browser.TextOf(SummaryPage.EndpointPin(i, j)).Should().NotBeNull(); } } }
//Editing existing certification public void tc_10879_ManageA_Certification() { CommonSection.CreateLink.Certifications(); CertificationPage.FillTitle(CertificatrTitle + "TC10879"); _test.Log(Status.Info, "Fill title"); CertificationPage.ClickCreate(); CommonSection.Manage.Training(); TrainingPage.SearchRecord(CertificatrTitle + "TC10879"); SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC10879"); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname + "TC10879"); _test.Log(Status.Info, "Searching Tag."); CertificationPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10879')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC10879", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog_certification("No")); CommonSection.SearchCatalog(CertificatrTitle + "TC10879"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10879")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(CertificatrTitle + "TC10879"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(CertificatrTitle + "TC10879")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void AddDetailPropertyToClosingFile() { //HelperSet.DisplayWidget("Property Maps"); var workFlownav = new WorkFlowPageNavigation(Driver); var property = new PropertyPage(Driver); var summaryPage = new SummaryPage(Driver); workFlownav .GoToWorkFlowPage() .GoToAppropriateClosingFile() .ClickDetailsMenuItem(); property .ClickPropertySideMenuItem() .TypeAddress1Field("500 Southeast 8th Avenue, Hillsboro") .ClickLookupButton(); // .ChooseState("500 Southeast 8th Avenue") // .ClickConfirmButton(); //workFlownav // .ClickSummaryMenuItem(); Driver.Navigate().Refresh(); var addresslocation = summaryPage.GetLocation(); Assert.IsTrue(addresslocation.Contains("Hillsboro")); }
public static T EnterHiredCarInformation <T>(this LiabilityQuestions1Page liabilityQuestions1Page, AdditionalCoverages additionalCoverages, bool edit = false) { ParameterValidator.ValidateNotNull(liabilityQuestions1Page, "LiabilityQuestions1Page"); ParameterValidator.ValidateNotNull(additionalCoverages, "Additional Coverages"); ParameterValidator.ValidateNotNull(additionalCoverages.HiredCarNonOwned, "Hired Car Information"); LiabilityQuestions3Page liabilityQuestions3Page = new LiabilityQuestions3Page(); //1. Enter Liability Question 1 page liabilityQuestions1Page.EnterLiabilityQuestion1(additionalCoverages.HiredCarNonOwned.LiabilityQuestion1); if (additionalCoverages.HiredCarNonOwned.LiabilityQuestion1.PlanToUseUnscheduledVehicleNextYear == AnswerOption.Yes) { // Select next button LiabilityQuestions2Page liabilityQuestions2Page = liabilityQuestions1Page.SelectNextButton <LiabilityQuestions2Page>(); // Verification liabilityQuestions2Page.ValidateLiabilityQuestions2PageDisplayed(); //2. Enter Liability Question 2 page and select Next liabilityQuestions2Page.EnterLiabilityQuestion2(additionalCoverages.HiredCarNonOwned.LiabilityQuestion2).SelectNextButton(); } else { // Select next button liabilityQuestions1Page.SelectNextButton <LiabilityQuestions3Page>(); } // Verification liabilityQuestions3Page.ValidateLiabilityQuestions3PageDisplayed(); //3. enter Liability Questions 3 page and select next HiredCarPhysicalDamagePage hiredCarPhysicalDamagePage = liabilityQuestions3Page.EnterLiabilityQuestion3(additionalCoverages.HiredCarNonOwned.LiabilityQuestion3).SelectNextButton(); //verification hiredCarPhysicalDamagePage.ValidateHiredCarPhysicalDamagePageDisplayed(); //4. Enter hired car physical damage page hiredCarPhysicalDamagePage.EnterHiredCarPhysDamage(additionalCoverages.HiredCarNonOwned.HiredCarPhysicalDamage); if (additionalCoverages != null) { // Select next button CargoLimitDeductiblePage cargoLimitDeductiblePage = hiredCarPhysicalDamagePage.SelectNextButton <CargoLimitDeductiblePage>(); //Verification cargoLimitDeductiblePage.ValidateCargoLimitDeductiblePageDisplayed(); } else if (additionalCoverages.TrailerInterchange != null) { //Select next button TrailerInterchangePage trailerInterchangePage = hiredCarPhysicalDamagePage.SelectNextButton <TrailerInterchangePage>(); //Verification trailerInterchangePage.ValidateTrailerInterchangePageDisplayed(); } else if (edit) { // Select Next button SummaryPage summaryPage = hiredCarPhysicalDamagePage.SelectNextButton <SummaryPage>(); //Verification summaryPage.ValidateSummaryPageDisplayed(); } return((T)Activator.CreateInstance(typeof(T))); }
public void tc_7253_Manage_a_SCORM_course() { string expectedresult = "Summary"; CommonSection.CreteNewScorm(scormtitle + "TC7251"); _test.Log(Status.Info, "Creating New Scorm"); DocumentPage.ClickButton_CheckOut(); ContentDetailsPage.Accordians.ClickEdit_Summery(); _test.Log(Status.Info, "Click on Edit Summery"); GeneralCoursePage.SearchTagForNewContent(tagname + "TC7251"); _test.Log(Status.Info, "Searching Tag."); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Driver.clickEleJs(By.XPath("//input[@value='Save']")); driver.WaitForElement(By.XPath("//h3[contains(.,'Summary')]")); string text = driver.gettextofelement(By.XPath("//h3[contains(.,'Summary')]")); StringAssert.AreEqualIgnoringCase(expectedresult, text); Assert.IsTrue(driver.existsElement(By.XPath("//*[contains(@class,'alert alert-success')]"))); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes")); _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet"); DocumentPage.ClickButton_CheckIn(); CommonSection.SearchCatalog(scormtitle + "TC7251"); Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is Searched"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(scormtitle + "TC7251"); SearchResultsPage.ClickCourseTitle(scormtitle + "TC7251"); DocumentPage.ClickButton_CheckOut(); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); //GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402"); CreateAICCPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7251')]")).Text; StringAssert.AreEqualIgnoringCase(tagname + "TC7251", s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(scormtitle + "TC7251"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(scormtitle + "TC7251"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(scormtitle + "TC7251")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public void WhenTheUserRemovesInterpreter() { var role = "Interpreter"; _browsers[_c.CurrentUser].Click(SummaryPage.RemoveParticipantLink(GetParticipantBy(role).Firstname)); _browsers[_c.CurrentUser].Click(SummaryPage.RemoveParticipant); RemoveParticipant(GetParticipantBy(role)); }
public void UserShouldBeAbleToRentCar() { SearchPage.SearchCarForRent(); SearchPage.ClickFirstRentButton(); CommonActions.ClickRent(); SummaryPage.TypeValidUserDetails(); CommonActions.ClickRent(); SuccessPage.AssertUserIsOnSuccessPage(successPage); }
public void WhenTheUserRemovesParticipant() { var participant = GetParticipantBy("Litigant in person"); _browsers[_c.CurrentUser].Click(SummaryPage.RemoveParticipantLink(participant.Firstname)); _browsers[_c.CurrentUser].Driver.WaitUntilVisible(SummaryPage.RemoveInterpreterMessage).Displayed.Should().BeTrue(); _browsers[_c.CurrentUser].Click(SummaryPage.RemoveInterpreter); RemoveParticipant(participant); RemoveParticipant(GetParticipantBy("Interpreter")); }
public void ThenProductIsAddedToCart() { Utilities ut = new Utilities(Driver); CartOverlayPage cop = new CartOverlayPage(Driver); ut.ClickOnElement(cop.ProceedToCheckout); SummaryPage sp = new SummaryPage(Driver); string productName = ScenarioContext.Current.Get <string>(TestConstats.ProductName); Assert.AreEqual(ut.ReturnTextFromElement(sp.prdName), productName, "Expected product is not in the cart"); }
public static T EnterCargoInformation <T>(this CargoLimitDeductiblePage cargoLimitDeductiblePage, AdditionalCoverages additionalCoverages, bool edit = false) { ParameterValidator.ValidateNotNull(cargoLimitDeductiblePage, "CargoLimitDeductiblePage"); ParameterValidator.ValidateNotNull(additionalCoverages, "Additional Coverages"); ParameterValidator.ValidateNotNull(additionalCoverages.Cargo, "Cargo Information"); //1. Enter the following cargo limit and deductible information and proceed CargoCategoryPage cargoCategoryPage = cargoLimitDeductiblePage.SelectCargoLimitAndDeductible(additionalCoverages.Cargo.CargoLimitDeductible).SelectNextButton(); //Validation cargoCategoryPage.ValidateCargoCategoryPageDisplayed(); //2. Select the following and proceed @CargoCategory CargoCommodityPage cargoCommodityPage = cargoCategoryPage.SelectCargoCategory(additionalCoverages.Cargo.CargoCategory).SelectNextButton(); //Verification cargoCommodityPage.ValidateCargoCommodityPageDisplayed(); //3. Select the following and proceed @CargoCommodity CargoModifiersPage cargoModifiersPage = cargoCommodityPage.SelectCargoCommodity(additionalCoverages.Cargo.CargoCommodity).SelectNextButton(); // Verification cargoModifiersPage.ValidateCargoModifiersPageDisplayed(); //4. Select the following for cargo modifiers and proceed cargoModifiersPage.SelectCargoModifiers(additionalCoverages.Cargo.CargoModifiers); if (additionalCoverages.TrailerInterchange != null) { // Select next button TrailerInterchangePage trailerInterchange = cargoModifiersPage.SelectNextButton <TrailerInterchangePage>(); // Verification trailerInterchange.ValidateTrailerInterchangePageDisplayed(); } else if (edit) { // Select next button AdditionalCoveragesOverviewPage additionalCoveragesOverviewPage = cargoModifiersPage.SelectNextButton <AdditionalCoveragesOverviewPage>(); // Verification additionalCoveragesOverviewPage.ValidateAdditionalCoveragesOverviewPageDisplayed(); } else { // Select next button SummaryPage summaryPage = cargoModifiersPage.SelectNextButton <SummaryPage>(); //Verification summaryPage.ValidateSummaryPageDisplayed(); } return((T)Activator.CreateInstance(typeof(T))); }
/* * PARTIAL CLASS - ZÁLOŽKA PROFIL */ private void IntializeProfile() { if (Authentification.IsLoggedIn) { SummaryPage profilePage = new SummaryPage(); frSummary.Navigate(profilePage); PasswordChangePage pswdPage = new PasswordChangePage(); frPasswordChange.Navigate(pswdPage); OtherSettingsPage otherSettingsPage = new OtherSettingsPage(); frOtherOptions.Navigate(otherSettingsPage); } }
public void UI_EditQuote_Submitted_Quotes_Cannot_Be_Edited() { //Given //Prepare test data EditQuoteSubmittedQuotesCannotBeEditedTestData testData = new EditQuoteSubmittedQuotesCannotBeEditedTestData(); //1. Navigate to Home page. LoginPage loginPage = OpenBreezeApplication(); //2. Login to Welcome Page WelcomePage welcomePage = loginPage.Login(); //3. Create Quote - Single Vehicle/Single Driver No Additional Coverages SummaryPage summaryPage = welcomePage.CreateQuote(testData.Quote); string quoteId = summaryPage.GetQuoteId(); //4. Submit Quote IndicationPage indicationPage = summaryPage.SelectSubmitButton(); // Verification indicationPage.ValidateIndicationPageDisplayed() .ValidateCongratulationsMessageDisplayed(); //5. Select Close indicationPage.SelectCloseButton(); // Verification welcomePage.ValidateWelcomePageDisplayed(); //6. Open the quote that was just submitted. welcomePage.ResumeQuote <SummaryPage>(EnvironmentSetting.WebUrl, quoteId); // Verification summaryPage.ValidateSummaryPageDisplayed() .ValidateSubmittedButtonDisplayed() .ValidatePrintIndicationButtonEnabled(); //7. Select Menu Headers foreach (var item in testData.MenuHeaderTitles) { summaryPage.SelectMenuTitle <SummaryPage>(item); // Verification summaryPage.ValidateMenuHeaderLinkNotDisplayed(item); } //8. Select Close summaryPage.SelectCloseButton(); // Verification welcomePage.ValidateWelcomePageDisplayed(); }
public void Create_SCROM_Course_7251() { CommonSection.CreateLink.SCORM(); _test.Log(Status.Info, "open scorm page"); CreatePage.ClickBrowsebutton(); _test.Log(Status.Info, "browse the content and click create button"); // // CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip"); // CreatePage.ClickCreatebutton(); Assert.IsTrue(SummaryPage.Title == "Summary", "Expected = Summary, but actual was " + SummaryPage.Title); StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different"); SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test"); // SummaryPage.ClickSavebutton(); StringAssert.AreEqualIgnoringCase("The changes were saved.", ContentDetailsPage.GetSuccessMessage(), "Error message is different"); ContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Checkin scorm course"); }
private async Task LoadTestSummaryPage() { var firstShoppingCart = (await Warehouse.ShoppingCarts.GetAllAsync()).FirstOrDefault(); var cartItems = await firstShoppingCart.GetAllCartItems(); var models = new List <SummaryCellViewModel>(); foreach (var cartItem in cartItems) { models.Add(await cartItem.GetSummaryCellViewModel()); } var dummy = new SummaryPage(firstShoppingCart, models); MainPage = new DreamNavigationPage(dummy); }
public void Upload_Launch_Course() { CommonSection.CreateLink.SCORM(); _test.Log(Status.Info, "open scorm page"); CreatePage.ClickBrowsebutton(); _test.Log(Status.Info, "browse the content and click create button"); // // CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip"); // CreatePage.ClickCreatebutton(); Assert.IsTrue(SummaryPage.Title == "Summary", "Expected = Summary, but actual was " + SummaryPage.Title); StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different"); SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test"); // SummaryPage.ClickSavebutton(); StringAssert.AreEqualIgnoringCase("The changes were saved.", ContentDetailsPage.GetSuccessMessage(), "Error message is different"); ContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Checkin scorm course"); CommonSection.CatalogSearchText("Maritime Navigation - Exam only for Migration Test"); _test.Log(Status.Info, "search migration"); Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1); SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test"); _test.Log(Status.Info, "opens searched content link"); Assert.IsTrue(ContentDetailsPage.CheckCourseTitle("Maritime Navigation - Exam only for Migration Test")); ContentDetailsPage.ClickOpenItembutton(); _test.Log(Status.Info, "Enrols and open the scorm course"); Assert.IsTrue(CourseLaunchModalPage.Exist("Maritime Navigation - Exam only for Migration Test")); // CourseLaunchModalPage.ClickBrowserX(); Assert.IsTrue(ContentDetailsPage.CheckResumeButton()); CommonSection.Manage.Training(); _test.Log(Status.Info, "open training page"); TrainingPage.ManageContentPortlet.SearchForContent("Migration"); _test.Log(Status.Info, "search for content migration"); Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Migration") >= 1); SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test"); _test.Log(Status.Info, "click the searjced title link"); ContentDetailsPage.Summary.ClickViewButton(); //need towrite the code _test.Log(Status.Info, "CLick view button"); Assert.IsTrue(SummaryPage.Title == "Maritime Navigation - Exam only for Migration Test"); //need towrite the code Assert.IsTrue(ContentDetailsPage.CheckCourseTitleOnClickingEditButton("Maritime Navigation - Exam only for Migration Test")); ContentDetailsPage.DeleteContent(); _test.Log(Status.Info, "deleting the content"); // StringAssert.StartsWith("Success", ContentDetailsPage.GetRemovalSuccessMessage(), "Error message is different"); CommonSection.Manage.Training(); _test.Log(Status.Info, "open training page"); TrainingPage.ManageContentPortlet.SearchForContent("Migration"); _test.Log(Status.Info, "search for content migration"); Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Migration") == 0); }
public static T EnterAdditionalInterestCounts <T>(this AdditionalInterestCountsPage additionalInterestCountsPage, AdditionalCoverages additionalCoverages, bool edit = false) { ParameterValidator.ValidateNotNull(additionalInterestCountsPage, "AdditionalInterestCountsPage"); ParameterValidator.ValidateNotNull(additionalCoverages, "Additional Coverages"); ParameterValidator.ValidateNotNull(additionalCoverages.AdditionalInterests, "Additional Interest Count"); // Enter Additional Interest count additionalInterestCountsPage.InputAdditionalInterestCounts(additionalCoverages.AdditionalInterests); if (additionalCoverages.HiredCarNonOwned != null) { // Select next button LiabilityQuestions1Page liabilityQuestions1Page = additionalInterestCountsPage.SelectNextButton <LiabilityQuestions1Page>(); //Verification liabilityQuestions1Page.ValidateLiabilityQuestions1PageDisplayed(); } else if (additionalCoverages.Cargo != null) { // Select Next Button CargoLimitDeductiblePage cargoLimitDeductiblePage = additionalInterestCountsPage.SelectNextButton <CargoLimitDeductiblePage>(); // Verification cargoLimitDeductiblePage.ValidateCargoLimitDeductiblePageDisplayed(); } else if (additionalCoverages.TrailerInterchange != null) { // Select Next Button TrailerInterchangePage trailerInterchange = additionalInterestCountsPage.SelectNextButton <TrailerInterchangePage>(); // Verification trailerInterchange.ValidateTrailerInterchangePageDisplayed(); } else if (edit) { // Select next button AdditionalCoveragesOverviewPage additionalCoveragesOverviewPage = additionalInterestCountsPage.SelectNextButton <AdditionalCoveragesOverviewPage>(); //Verification additionalCoveragesOverviewPage.ValidateAdditionalCoveragesOverviewPageDisplayed(); } else { //Select Next button SummaryPage summaryPage = additionalInterestCountsPage.SelectNextButton <SummaryPage>(); //Verification summaryPage.ValidateSummaryPageDisplayed(); } return((T)Activator.CreateInstance(typeof(T))); }
public void WhenIFillAllTheFormOfEachPageAddTenantDashboardLiabilitiesDetailsPageSummaryPageAndISubmit() { PropertyOwnerPage propertyOwnerPage = new PropertyOwnerPage(); //Click add tenant by input proerty name AddTenantDashboardPage addTenantDashboardPage = propertyOwnerPage.ClickAddTenantAccordingToPropertyName(); //fill AddTenantDashboard detail addTenantDashboardPage.FillTheDetails(); //verity this page addTenantDashboardPage.VerifyTenantDetailsPage(); //click next button and move to liabilitiesDetailsPage LiabilitiesDetailsPage liabilitiesDetailsPage = addTenantDashboardPage.ClickNext(); //click next button and move to summaryPage SummaryPage summaryPage = liabilitiesDetailsPage.ClickNextBtn(); //click submit button and move to PropertyOwnerPage PropertyOwnerPage propertyOwnerPageAfterAddTenant = summaryPage.ClickSubmit(); }
public void AddMoneyTest() { HelperSet.HelperMethodAddWorkflow(); var workFlowPage = new WorkFlowPageNavigation(Driver); var moneyPage = new MoneyPage(Driver); var summarypage = new SummaryPage(Driver); var closingRep = new ClosingFilesRepository(DbConn); var closingFileEscrowDepRep = new ClosingFileEscrowDepositsRepository(DbConn); HelperSet.AddBankAndBankAccounts(); Random rand = new Random(); decimal purchasePrice = rand.Next(10000, 50000); decimal escrowDep = rand.Next(1000, 5000); workFlowPage .GoToWorkFlowPage() .GoToAppropriateClosingFile() .ClickDetailsMenuItem(); moneyPage .ClickMoneySideMenuItem() .CleanAndEnterPurchasePrice(purchasePrice) .ClearAndEnterEscrowDeposit(escrowDep) .ClearAndEnterLoanAmount("10") .ChooseEscrowAccount(); decimal eRexpPrice = purchasePrice; decimal erEscrowDeposit = escrowDep; var wait = new WebDriverWait(Driver, TimeSpan.FromSeconds(10)); //wait.Until((Driver) => closingRep.GetPurchasePrice(ClosingFileNumber) == eRexpPrice); decimal expPurchPrice = closingRep.GetPurchasePrice(ClosingFileNumber); decimal expEscrDeposit = closingFileEscrowDepRep.GetEscrowDeposit(ClosingFileNumber); Assert.Multiple(() => { Assert.AreEqual(eRexpPrice, expPurchPrice, "Purchase Price is changed"); Assert.AreEqual(erEscrowDeposit, expEscrDeposit, "Escrow Price is changed"); }); }
// Aktualizace stránek při přechodu z jedné na druhou private void tabControlProfile_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (tabProfileSummary.IsSelected && e.Source is TabControl) { SummaryPage profilePage = new SummaryPage(); frSummary.Navigate(profilePage); } if (tabProfilePswdChange.IsSelected && e.Source is TabControl) { PasswordChangePage pswdPage = new PasswordChangePage(); frPasswordChange.Navigate(pswdPage); } if (tabProfileOtherOptions.IsSelected && e.Source is TabControl) { OtherSettingsPage otherSettingsPage = new OtherSettingsPage(); frOtherOptions.Navigate(otherSettingsPage); } }
private void btnVote_Click(object sender, RoutedEventArgs e) { //Present the user with a messagebox to ensure his decision var mb = MessageBox.Show("Are you sure this the person you want to vote for?", "Are you sure?", MessageBoxButton.YesNo, MessageBoxImage.Question); if (mb == MessageBoxResult.Yes) { try { //If affirmative, find checked candidate List <Candidate> checkedCandidatesList = candidateData.Candidates.Where(x => x.IsChecked).ToList(); VotingDatabaseEntities db = new VotingDatabaseEntities(); //Encrypt the users personal id number LoggedVoter.PersonalIdNumber = Encrypter.EncryptString(LoggedVoter.PersonalIdNumber); //If single candidate was selected if (checkedCandidatesList.Count == 1) { //Add which candidate was selected LoggedVoter.CandidateId = checkedCandidatesList[0].CandidateId; } else { LoggedVoter.CandidateId = null; } //Update database db.Voters.Add(LoggedVoter); db.SaveChanges(); //Navigate user to the summary page SummaryPage summaryPage = new SummaryPage(); NavigationService.Navigate(summaryPage); } catch { MessageBox.Show("Could not save your vote! Try again.", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error); } } }
//Editing existing certification public void A07_ManageACertification_10879() { CommonSection.CreateLink.Certifications(); // objCreate.FillCertificationPageByExcel(driver); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); objCreate.FillCertificationPage("editcontent"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(Variables.certTitle + "editcontent"); SearchResultsPage.ClickCourseTitle(Variables.certTitle + "editcontent"); CurriculumsPage.Edit_Click(driver); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); GeneralCoursePage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); SummaryPage.ClickSavebutton(); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text; StringAssert.AreEqualIgnoringCase(tagname, s); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); TC_10879 = true; }
public void WhenTheUserEditsTheHearing(string screen) { _bookingDetailsSteps.ClickEdit(); _browsers[_c.CurrentUser].Click(SummaryPage.EditScreenLink(screen)); if (screen.Equals("hearing details")) { _hearingDetailsSteps.EditHearingDetails(); } else if (screen.Equals("hearing schedule")) { _hearingScheduleSteps.EditHearingSchedule(); } else if (screen.Equals("audio recording")) { _assignJudgeSteps.EditAudioRecording(); } else if (screen.Equals("other information")) { _otherInformationSteps.ProgressToNextPage(); } }
public void tc_26747_Manage_a_Classroom_course() { string actualresult = string.Empty; CommonSection.CreateLink.ClassroomCourse(); _test.Log(Status.Info, "Opened Create Classroom Course Page"); classroomcourse.populateClassroomform(classroomcoursetitle + "TC26747", "DescTC26747"); _test.Log(Status.Info, "Filled all required information and submit the classroom creation page"); ClassroomCoursePage.AvailableinCatalog.ClicktoUncheck(); classroomcourse.buttonsaveclick(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(classroomcoursetitle + "TC26747"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(classroomcoursetitle + "TC26747")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); SearchResultsPage.ClickCourseTitle(classroomcoursetitle + "TC26747"); _test.Log(Status.Info, "Click on Classroom Course title from Manage Content page"); classroomcourse.buttoncourseeditclick(); _test.Log(Status.Info, "Click on edit button in summary accordian"); //SummaryPage.AddnewTag(TAGTitle + "TC26747"); Assert.IsTrue(SummaryPage.AddnewTag(TAGTitle + "TC26747")); _test.Log(Status.Pass, "Verify new tab can added in summary page"); SummaryPage.ClickSavebutton(); _test.Log(Status.Info, "Click Save button"); Assert.IsTrue(SummaryPage.checkContentTagsOnDetailsPage()); // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage()); _test.Log(Status.Pass, "Verify added tag is displayed"); }
public void tc_10823_Manager_Curriculum() { CommonSection.CreateLink.Curriculam(); // Assert.IsTrue(Driver.checkTagsonContentCreationPage(true)); CreateCurriculumnPage.fillTtile(curriculumtitle + "TC10823"); CreateCurriculumnPage.SelectCollaborationSpaceOption("No"); CreateCurriculumnPage.ClickCreatebutton(); _test.Log(Status.Info, "A new Curriculum created"); CommonSection.Manage.Training(); TrainingPage.SearchRecord(curriculumtitle + "TC10823"); SearchResultsPage.ClickCourseTitle(curriculumtitle + "TC10823"); ContentDetailsPage.Summary.ClickEdit(); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked()); _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display"); GeneralCoursePage.SearchTagForNewContent(tagname); _test.Log(Status.Info, "Searching Tag."); CreateCurriculumnPage.AvailableinCatalog.ClicktoUncheck(); SummaryPage.ClickSavebutton(); string savedTagName = ContentDetailsPage.Summary.tagName(tagname); StringAssert.AreEqualIgnoringCase(tagname, savedTagName); _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done"); Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No")); CommonSection.SearchCatalog(curriculumtitle + "TC10823"); Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(curriculumtitle + "TC10823")); _test.Log(Status.Pass, "Verify Created content is not Searched"); CommonSection.Manage.Training(); _test.Log(Status.Info, "Navigate to Manage>>Training Page"); TrainingPage.SearchRecord(curriculumtitle + "TC10823"); _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet"); Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(curriculumtitle + "TC10823")); _test.Log(Status.Pass, "Verify Created content is Searched through Manage content"); }
public static T EnterTrailerInterchange <T>(this TrailerInterchangePage trailerInterchangePage, AdditionalCoverages additionalCoverages, bool edit = false) { ParameterValidator.ValidateNotNull(trailerInterchangePage, "TrailerInterchangePage"); ParameterValidator.ValidateNotNull(additionalCoverages, "Additional Coverages"); ParameterValidator.ValidateNotNull(additionalCoverages.TrailerInterchange, "Trailer Interchange"); // Enter Trailer interchange trailerInterchangePage.InputTrailerInterchange(additionalCoverages.TrailerInterchange); if (edit) { // Select next button AdditionalCoveragesOverviewPage additionalCoveragesOverviewPage = trailerInterchangePage.SelectNextButton <AdditionalCoveragesOverviewPage>(); // Verification additionalCoveragesOverviewPage.ValidateAdditionalCoveragesOverviewPageDisplayed(); } else { // Select Next button SummaryPage summaryPage = trailerInterchangePage.SelectNextButton(); // Verification summaryPage.ValidateSummaryPageDisplayed(); } return((T)Activator.CreateInstance(typeof(T))); }
public void Create_Certification_when_Completion_Criteria_Set_as_Credit_type_33822() { //login with a admin // Create a Certification from create>Certification CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click create>certification"); CertificationPage.FillTitle(CertificatrTitle + "TC33822"); _test.Log(Status.Info, "Fill title"); CertificationPage.SelectDropDown.CompletionCriteriaAs("Total credit hours are achieved"); _test.Log(Status.Info, "Select Value Total credit hours are achieved from completion criteria dropdown"); CertificationPage.SelectDropDown.TotalHrsscrollAs("2.5"); _test.Log(Status.Info, "Select Value 2.5 from scroll"); CertificationPage.SelectDropDown.CreditTypeAs("Default Credit Type"); _test.Log(Status.Info, "Select Value Default credit type"); CertificationPage.Radiobutton.SelectCertificationexpireAs("No"); _test.Log(Status.Info, "Select Value as no for Does this certification expire?"); CertificationPage.Radiobutton.IncludePastContentCompletionAs("No"); _test.Log(Status.Info, "Select Value as no for Include Past Content Completion"); //CertificationPage.Radiobutton.CertificationCostTypeAs("Certification price"); CertificationPage.ClickCreate(); _test.Log(Status.Info, "Select Value as Certification price for Certification Cost Type and click create"); // StringAssert.AreEqualIgnoringCase("The item was created.", CertificationPage.VerifySuccessMessageText("The item was created.")); _test.Log(Status.Pass, "The item was created."); StringAssert.AreEqualIgnoringCase("Total credit hours are achieved (2.5 Default Credit Type)", CertificationPage.VerifyCompletionCriteriaText("Total credit hours are achieved (2.5 Default Credit Type)")); _test.Log(Status.Pass, "Verify Completion Criteria: Total credit hours are achieved (2.5 Default Credit Type)"); //StringAssert.ArenotEqualIgnoringCase("Certification Content", Reg_Cert_CV_1107Page.VerifyText("")); // _test.Log(Status.Info, "Verify Certification Content panel is not visible"); CertificationPage.Summary.ClickEdit(); _test.Log(Status.Info, "Click Edit Button"); Assert.IsFalse(SummaryPage.VerifyCompletionCriterianoteditable("Completion Criteria")); _test.Log(Status.Pass, "Verify Completion Criteria cannot be modified"); Assert.IsFalse(SummaryPage.VerifyTotalHoursnoteditable("Total Hours ")); _test.Log(Status.Pass, "Verify Total Hours cannot be modified"); Assert.IsFalse(SummaryPage.VerifyfCreditTypenoteditable("Credit Type")); _test.Log(Status.Pass, "Verify Credit Type cannot be modified"); }
public void AddTenant() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Add Tenant and Verity it" + GetDateAndTime.GetTimeNow()); //Now page is Dashboard, then go to PropertyOwnersPage PropertyOwnerPage propertyOwnerPage = new DashboardPage().GotoPropertyOwnersPage(); //Click add tenant by input proerty name AddTenantDashboardPage addTenantDashboardPage = propertyOwnerPage.ClickAddTenantAccordingToPropertyName(); //fill AddTenantDashboard detail addTenantDashboardPage.FillTheDetails(); //verity this page addTenantDashboardPage.VerifyTenantDetailsPage(); //click next button and move to liabilitiesDetailsPage LiabilitiesDetailsPage liabilitiesDetailsPage = addTenantDashboardPage.ClickNext(); //click next button and move to summaryPage SummaryPage summaryPage = liabilitiesDetailsPage.ClickNextBtn(); //click submit button and move to PropertyOwnerPage PropertyOwnerPage propertyOwnerPageAfterAddTenant = summaryPage.ClickSubmit(); //verify if the tenant is added. propertyOwnerPageAfterAddTenant.VerifyAddTenant(); }