public void HECenterLocationPostCode_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string heCenterLocationPostCode = "12345678"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetHECenterLocationPostCodeTextBox(heCenterLocationPostCode); // Assert var error = learningDeliveryTab.GetHECenterLocationPostCodeValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid HE center location postcode {heCenterLocationPostCode}"); }