/// <summary> /// Verifies if Comment is NOT submitted in ContactUs page /// </summary> public void VerifyNotSubmitted() { SeleniumLog log = SeleniumLog.Instance(); log.SaveIndent("Function 2"); log.Blue().WriteLine("Function: VerifyNotSubmitted()"); log.Indent(); log.ResetResult(); slAssert.AreEqual(expected: true, actual: IsExist(ErrorXPath), message: "Verify that Error message is displayed"); slAssert.AreNotEqual(notExpected: true, actual: IsExist(ThankYouXPath), message: "Verify that Thank You message is not submitted"); log.PublishResult(); //In case one of the above assert fails, it doesn't exist straight away log.RestoreIndent("Function 2"); //Ensures unindent back to correct level }