public void PercentNotThoughtByThisInstitution_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string percentNotThoughtByThisInstitution = "50"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetPercentNotThoughtByThisInstitutionTextBox(percentNotThoughtByThisInstitution); // Assert var error = learningDeliveryTab.GetPercentNotThoughtByThisInstitutionValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Percent not thought by this institution {percentNotThoughtByThisInstitution}"); }