public void MajorSourceOfTuitonFees_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string majorSourceOfTuitonFees = "33 - BIS"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetMajorSourceOfTuitonFeesComboBox(majorSourceOfTuitonFees); // Assert var error = learningDeliveryTab.GetMajorSourceOfTuitonFeesValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Major source of tuiton fees {majorSourceOfTuitonFees}"); }