public void QualificationsOnEntry_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string qualificationOnEntry = "X06 - Not known"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetQualificationOnEntryComboBox(qualificationOnEntry); // Assert var error = learningDeliveryTab.GetQualificationOnEntryValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Qualification on entry {qualificationOnEntry}"); }