예제 #1
0
        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);
        }
예제 #2
0
        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);
        }