public void ValidateSpanIsEmpty() { var actualText = WebElement.Text; string messagePassed = $"The (Span) [ {ControlName} ] is Empty - PASSED."; string messageFailed = $"The (Span) [ {ControlName} ] contains the WRONG value: [ {actualText} ], when it should by Empty."; ExceptionManager.AssertIsEmpty(actualText, messagePassed, messageFailed); }
public void IsEmpty() { string text = GetValue(); string messagePassed = $"The (Text Field) [ {ControlName} ] is Empty - CORRECT -."; string messageFailed = $"The (Text Field) [ {ControlName} ] contains the WRONG value: [ {text} ], when it should by Empty."; ExceptionManager.AssertIsEmpty(text, messagePassed, messageFailed); }