public void StudentSupportNumber_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string studentSupportNumber = RandomStrings.GetRandomAlphabets(10); // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetStudentSupportNumberTextBox(studentSupportNumber); // Assert var error = learningDeliveryTab.GetStudentSupportNumberValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Student support number {studentSupportNumber}"); }