public void NetTuitonFee_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string netTuitonFee = "123456"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetNetTuitonFeeTextBox(netTuitonFee); // Assert var error = learningDeliveryTab.GetNetTuitonFeeValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Net tuiton fee {netTuitonFee}"); }