public void SocioEconomicIndicator_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string socioEconomicIndicator = "9 - Not classified"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetSocioEconomicIndicatorComboBox(socioEconomicIndicator); // Assert var error = learningDeliveryTab.GetSocioEconomicIndicatorValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation faild for invalid Socio-economic indicator {socioEconomicIndicator}"); }