public void PercentTaughtByFirstLDCSSubject_WhenCorrectValueEntered_ShouldAcceptWithNoValidationErrors() { // Arrange string percentTaughtByFirstLDCSSubject = "50"; // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); LearningDeliveryObjects learningDeliveryTab = WindowObjects.Windows.Main.SelectLearningDeliveryTab; learningDeliveryTab.ClickAddLearnerButton(); learningDeliveryTab.SelectLearningDeliveryHETab(); learningDeliveryTab.SetPercentTaughtByFirstLDCSSubjectTextBox(percentTaughtByFirstLDCSSubject); // Assert var error = learningDeliveryTab.GetPercentThoughtByFirstLDCSSubjectValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for invalid Percent taught by first LDCS subject {percentTaughtByFirstLDCSSubject}"); }