/// <summary> /// ASP.NET WebForms-ready & 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> /// <param name="clearValue">Determines whether the old content should be cleared before filling in the new value.</param> private static void FillInWithFixed( [NotNull] this ElementScope scope, [NotNull] string value, [NotNull] FinishInputWithAction finishInputWithAction, bool clearValue) { ArgumentUtility.CheckNotNull("scope", scope); ArgumentUtility.CheckNotNull("value", value); ArgumentUtility.CheckNotNull("finishInputWithAction", finishInputWithAction); if (!WebTestingConfiguration.Current.BrowserIsInternetExplorer()) { scope.FillInWithFixedForNormalBrowsers(value, clearValue); } else { scope.FillInWithFixedForInternetExplorer(value, clearValue); } finishInputWithAction(scope); }