コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: AssertUI.cs プロジェクト: paulsuen/selenium-utils
        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);
        }