Updating .NET bindings setting of timeouts for spec-compliance
This also removes some obsolete API entry points that have been marked as
deprecated for some months now. The properties of the ITimeouts object
should be used.
@@ -1139,53 +1139,6 @@ public TimeSpan PageLoad
get { return this.wrappedTimeouts.PageLoad; }
set { this.wrappedTimeouts.PageLoad = value; }
}
-
- /// <summary>
- /// Specifies the amount of time the driver should wait when searching for an
- /// element if it is not immediately present.
- /// </summary>
- /// <param name="timeToWait">A <see cref="TimeSpan"/> structure defining the amount of time to wait.</param>
- /// <returns>A self reference</returns>
- /// <remarks>
- /// When searching for a single element, the driver should poll the page
- /// until the element has been found, or this timeout expires before throwing
- /// a <see cref="NoSuchElementException"/>. When searching for multiple elements,
- /// the driver should poll the page until at least one element has been found
- /// or this timeout has expired.
- /// <para>
- /// Increasing the implicit wait timeout should be used judiciously as it
- /// will have an adverse effect on test run time, especially when used with
- /// slower location strategies like XPath.
- /// </para>
- /// </remarks>
- [Obsolete("This method will be removed in a future version. Please set the ImplicitWait property instead.")]
- public ITimeouts ImplicitlyWait(TimeSpan timeToWait)
- {
- return this.wrappedTimeouts.ImplicitlyWait(timeToWait);
- }
-
- /// <summary>
- /// Specifies the amount of time the driver should wait when executing JavaScript asynchronously.
- /// </summary>
- /// <param name="timeToWait">A <see cref="TimeSpan"/> structure defining the amount of time to wait.</param>
- /// <returns>A self reference</returns>
- [Obsolete("This method will be removed in a future version. Please set the AsynchronousJavaScript property instead.")]
- public ITimeouts SetScriptTimeout(TimeSpan timeToWait)
- {
- return this.wrappedTimeouts.SetScriptTimeout(timeToWait);
- }
-
- /// <summary>
- /// Specifies the amount of time the driver should wait for a page to load when setting the <see cref="IWebDriver.Url"/> property.
- /// </summary>
- /// <param name="timeToWait">A <see cref="TimeSpan"/> structure defining the amount of time to wait.</param>
- /// <returns>A self reference</returns>
- [Obsolete("This method will be removed in a future version. Please set the PageLoad property instead.")]
- public ITimeouts SetPageLoadTimeout(TimeSpan timeToWait)
- {
- this.wrappedTimeouts.SetPageLoadTimeout(timeToWait);
- return this;
- }
}
/// <summary>
