Skip to content

Commit

Permalink
Removes the FindElement methods that were previously renamed.
Browse files Browse the repository at this point in the history
  • Loading branch information
florentbr committed Aug 24, 2015
1 parent 1cae517 commit 1d9782d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 121 deletions.
24 changes: 0 additions & 24 deletions Selenium/ComInterfaces/_WebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,30 +217,6 @@ public interface _WebDriver {

[DispId(1260), Description("Waits for an element to disappear from the page")]
void WaitNotElement([MarshalAs(UnmanagedType.Struct)]By by, int timeout = -1);


//TODO: remove in a later release
#region Deprecated

[DispId(1179), Description("Deprecated, use FindElementByClass instead")]
WebElement FindElementByClassName(string classname, int timeout = -1, bool raise = true);

[DispId(1181), Description("Deprecated, use FindElementByCss instead")]
WebElement FindElementByCssSelector(string cssselector, int timeout = -1, bool raise = true);

[DispId(1192), Description("Deprecated, use FindElementByTag instead")]
WebElement FindElementByTagName(string tagname, int timeout = -1, bool raise = true);

[DispId(1222), Description("Deprecated, use FindElementsByClass instead")]
WebElements FindElementsByClassName(string classname, int minimum = 0, int timeout = 0);

[DispId(1224), Description("Deprecated, use FindElementsByCss instead")]
WebElements FindElementsByCssSelector(string cssselector, int minimum = 0, int timeout = 0);

[DispId(1236), Description("Deprecated, use FindElementsByTag instead")]
WebElements FindElementsByTagName(string tagname, int minimum = 0, int timeout = 0);

#endregion

#endregion

Expand Down
24 changes: 0 additions & 24 deletions Selenium/ComInterfaces/_WebElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,30 +176,6 @@ public interface _WebElement {
[DispId(1260), Description("Waits for an element to disappear from the page")]
void WaitNotElement([MarshalAs(UnmanagedType.Struct)]By by, int timeout = -1);


//TODO: remove in a later release
#region Deprecated

[DispId(1179), Description("Deprecated, use FindElementByClass instead")]
WebElement FindElementByClassName(string classname, int timeout = -1, bool raise = true);

[DispId(1181), Description("Deprecated, use FindElementByCss instead")]
WebElement FindElementByCssSelector(string cssselector, int timeout = -1, bool raise = true);

[DispId(1192), Description("Deprecated, use FindElementByTag instead")]
WebElement FindElementByTagName(string tagname, int timeout = -1, bool raise = true);

[DispId(1219), Description("Deprecated, use FindElementsByClass instead")]
WebElements FindElementsByClassName(string classname, int minimum = 0, int timeout = 0);

[DispId(1222), Description("Deprecated, use FindElementsByCss instead")]
WebElements FindElementsByCssSelector(string cssselector, int minimum = 0, int timeout = 0);

[DispId(1236), Description("Deprecated, use FindElementsByTag instead")]
WebElements FindElementsByTagName(string tagname, int minimum = 0, int timeout = 0);

#endregion

#endregion


Expand Down
73 changes: 0 additions & 73 deletions Selenium/Common/SearchContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,79 +289,6 @@ public WebElements FindElementsByTag(string tagname, int minimum = 0, int timeou
return this.FindElementsBy(Strategy.Tag, tagname, minimum, timeout);
}


//TODO: remove in a later release
#region Deprecated

/// <summary>
/// Deprecated, use FindElementByClass intead.
/// </summary>
/// <param name="classname">Classname</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <param name="raise">Optional - Raise an exception after the timeout when true</param>
/// <returns><see cref="WebElement" /> or null</returns>
public WebElement FindElementByClassName(string classname, int timeout = -1, bool raise = true) {
throw new SeleniumError("FindElementByClassName has been renamed to FindElementByClass");
}

/// <summary>
/// Deprecated, use FindElementByCss intead.
/// </summary>
/// <param name="cssselector">CSS selector</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <param name="raise">Optional - Raise an exception after the timeout when true</param>
/// <returns><see cref="WebElement" /> or null</returns>
public WebElement FindElementByCssSelector(string cssselector, int timeout = -1, bool raise = true) {
throw new SeleniumError("FindElementByCssSelector has been renamed to FindElementByCss");
}

/// <summary>
/// Deprecated, use FindElementByTag intead.
/// </summary>
/// <param name="tagname">Tag name</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <param name="raise">Optional - Raise an exception after the timeout when true</param>
/// <returns><see cref="WebElement" /> or null</returns>
public WebElement FindElementByTagName(string tagname, int timeout = -1, bool raise = true) {
throw new SeleniumError("FindElementByTagName has been renamed to FindElementByTag");
}

/// <summary>
/// Deprecated, use FindElementsByClass intead.
/// </summary>
/// <param name="classname">Class name</param>
/// <param name="minimum">Minimum number of elements to wait for</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <returns><see cref="WebElements" /></returns>
public WebElements FindElementsByClassName(string classname, int minimum = 0, int timeout = 0) {
throw new SeleniumError("FindElementsByClassName has been renamed to FindElementsByClass");
}

/// <summary>
/// Deprecated, use FindElementsByCss intead.
/// </summary>
/// <param name="cssselector">CSS selector</param>
/// <param name="minimum">Minimum number of elements to wait for</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <returns><see cref="WebElements" /></returns>
public WebElements FindElementsByCssSelector(string cssselector, int minimum = 0, int timeout = 0) {
throw new SeleniumError("FindElementsByCssSelector has been renamed to FindElementsByCss");
}

/// <summary>
/// Deprecated, use FindElementsByTag intead.
/// </summary>
/// <param name="tagname">Tag name</param>
/// <param name="minimum">Minimum number of elements to wait for</param>
/// <param name="timeout">Optional timeout in milliseconds</param>
/// <returns><see cref="WebElements" /></returns>
public WebElements FindElementsByTagName(string tagname, int minimum = 0, int timeout = 0) {
throw new SeleniumError("FindElementsByTagName has been renamed to FindElementsByTag");
}

#endregion


/// <summary>
/// Returns a web element matching the given method and value or null if no element found
/// </summary>
Expand Down

0 comments on commit 1d9782d

Please sign in to comment.