예제 #1
0
        /// <inheritdoc/>
        protected override void ExecuteInteraction(ElementScope scope)
        {
            ArgumentUtility.CheckNotNull("scope", scope);

            OutputDebugMessage(string.Format("New value: '{0}'", _value));
            scope.FillInWithFixed(_value, _finishInputWithAction);
        }
예제 #2
0
        /// <summary>
        /// ASP.NET WebForms-ready &amp; IE-compatiable version for Coypu's <see cref="ElementScope.SendKeys"/> method.
        /// </summary>
        /// <param name="scope">The <see cref="ElementScope"/> on which the action is performed.</param>
        /// <param name="value">The value to fill in.</param>
        public static void SendKeysFixed([NotNull] this ElementScope scope, [NotNull] string value)
        {
            ArgumentUtility.CheckNotNull("scope", scope);
            ArgumentUtility.CheckNotNull("value", value);

            const bool clearValue = false;

            scope.FillInWithFixed(value, FinishInput.Promptly, clearValue);
        }
예제 #3
0
        /// <summary>
        /// ASP.NET WebForms-ready &amp; IE-compatible version for Coypu's <see cref="ElementScope.FillInWith"/> method.
        /// </summary>
        /// <param name="scope">The <see cref="ElementScope"/> on which the action is performed.</param>
        /// <param name="value">The value to fill in.</param>
        /// <param name="finishInputWithAction"><see cref="FinishInputWithAction"/> for this action.</param>
        public static void FillInWithFixed(
            [NotNull] this ElementScope scope,
            [NotNull] string value,
            [NotNull] FinishInputWithAction finishInputWithAction)
        {
            ArgumentUtility.CheckNotNull("scope", scope);
            ArgumentUtility.CheckNotNull("value", value);
            ArgumentUtility.CheckNotNull("finishInputWithAction", finishInputWithAction);

            const bool clearValue = true;

            scope.FillInWithFixed(value, finishInputWithAction, clearValue);
        }