public void UCASApplicationCode_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string UCASApplicationCode = RandomStrings.GetRandomAlphabets(10); // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetUCASApplicationCodeTextBox(UCASApplicationCode); // Assert var error = learningDeliveryTab.GetUCASApplicationCodeValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Vaidation failed for invalid UCAS application code {UCASApplicationCode}"); }