public void LevelApplicableToFundingCouncilHEIFES_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string levelApplicableToFundingCouncilHEIFES = "10 - Undergraduate"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetLevelApplicableToFundingCouncilHEIFESComboBox(levelApplicableToFundingCouncilHEIFES); // Assert var error = learningDeliveryTab.GetLevelApplicableToFundingCouncilHEIFESValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Level applicable to funding council HEIFES {levelApplicableToFundingCouncilHEIFES}"); }