public static void IsChecked(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."); var IsChecked = new IsCheckedValidator(); operationRunner.Evaluate <UnexpectedElementStateException>(IsChecked); }
public static void IsChecked(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."); var isChecked = new IsCheckedValidator(); EvaluateValidator <UnexpectedElementStateException, IElementWrapper>(wrapper, isChecked); }