public void StudentInstanceIdentifier_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string studentInstanceIdentifier = RandomStrings.GetRandomAlphabets(10); // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetStudentInstanceIdentifierTextBox(studentInstanceIdentifier); // Assert var error = learningDeliveryTab.GetStudentInstanceIdentifierValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for an invalid Student Instance Identifier {studentInstanceIdentifier}"); }