public void EmploymentStatus_WhenCorrectSelectionIsMade_ShouldAcceptWithNoValidationErrors() { // Arrange string employmentStatus = "10 - In paid employment"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); EmploymentStatusObjects employmentStatusTab = WindowObjects.Windows.Main.SelectEmploymentStatusTab; employmentStatusTab.ClickAddEmploymentStatusButton(); employmentStatusTab.SetEmploymentStatusComboBox(employmentStatus); // Assertwe var error = employmentStatusTab.GetEmploymentStatusValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Employment status {employmentStatus}"); }