public void CompletionOfYearOfInstance_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string completionOfYearOfInstance = "1 - Completed the current year of programme of study"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetCompletionOfYearOfInstanceComboBox(completionOfYearOfInstance); // Assert var error = learningDeliveryTab.GetCompletionOfYearOfInstanceValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Completion of year of instance {completionOfYearOfInstance}"); }