public static void IsNotChecked(this IOperationRunner <IElementWrapper> operationRunner) { operationRunner.TagName("input", "Function IsNotChecked() can be used on input element only."); operationRunner.Attribute("type", new[] { "checkbox", "radio" }, failureMessage: "Input element must be type of checkbox or radio."); var IsNotChecked = new IsNotCheckedValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(IsNotChecked); }
public static void IsNotChecked(IElementWrapper wrapper) { TagName(wrapper, "input", "Function IsNotChecked() can be used on input element only."); Attribute(wrapper, "type", new[] { "checkbox", "radio" }, failureMessage: "Input element must be type of checkbox or radio."); var isNotChecked = new IsNotCheckedValidator(); EvaluateValidator <UnexpectedElementStateException, IElementWrapper>(wrapper, isNotChecked); }