public void LengthOfEmployment_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string lengthOfEmployment = "1 - Learner has been employed for up to 3 months "; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); EmploymentStatusObjects employmentStatusTab = WindowObjects.Windows.Main.SelectEmploymentStatusTab; employmentStatusTab.ClickAddEmploymentStatusButton(); employmentStatusTab.SetLengthOfEmploymentComboBox(lengthOfEmployment); // Assert var error = employmentStatusTab.GetLengthOfEmploymentValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for Length of employment {lengthOfEmployment}"); }