From 1d9782d5ff6b667426a0fddfd6e385d3c81b9807 Mon Sep 17 00:00:00 2001 From: florentbr Date: Mon, 24 Aug 2015 17:52:55 +0100 Subject: [PATCH] Removes the FindElement methods that were previously renamed. --- Selenium/ComInterfaces/_WebDriver.cs | 24 --------- Selenium/ComInterfaces/_WebElement.cs | 24 --------- Selenium/Common/SearchContext.cs | 73 --------------------------- 3 files changed, 121 deletions(-) diff --git a/Selenium/ComInterfaces/_WebDriver.cs b/Selenium/ComInterfaces/_WebDriver.cs index c7d895a..14d2f65 100644 --- a/Selenium/ComInterfaces/_WebDriver.cs +++ b/Selenium/ComInterfaces/_WebDriver.cs @@ -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 diff --git a/Selenium/ComInterfaces/_WebElement.cs b/Selenium/ComInterfaces/_WebElement.cs index dac2ed9..1e52e68 100644 --- a/Selenium/ComInterfaces/_WebElement.cs +++ b/Selenium/ComInterfaces/_WebElement.cs @@ -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 diff --git a/Selenium/Common/SearchContext.cs b/Selenium/Common/SearchContext.cs index f9b4c1e..e64c1ff 100644 --- a/Selenium/Common/SearchContext.cs +++ b/Selenium/Common/SearchContext.cs @@ -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 - - /// - /// Deprecated, use FindElementByClass intead. - /// - /// Classname - /// Optional timeout in milliseconds - /// Optional - Raise an exception after the timeout when true - /// or null - public WebElement FindElementByClassName(string classname, int timeout = -1, bool raise = true) { - throw new SeleniumError("FindElementByClassName has been renamed to FindElementByClass"); - } - - /// - /// Deprecated, use FindElementByCss intead. - /// - /// CSS selector - /// Optional timeout in milliseconds - /// Optional - Raise an exception after the timeout when true - /// or null - public WebElement FindElementByCssSelector(string cssselector, int timeout = -1, bool raise = true) { - throw new SeleniumError("FindElementByCssSelector has been renamed to FindElementByCss"); - } - - /// - /// Deprecated, use FindElementByTag intead. - /// - /// Tag name - /// Optional timeout in milliseconds - /// Optional - Raise an exception after the timeout when true - /// or null - public WebElement FindElementByTagName(string tagname, int timeout = -1, bool raise = true) { - throw new SeleniumError("FindElementByTagName has been renamed to FindElementByTag"); - } - - /// - /// Deprecated, use FindElementsByClass intead. - /// - /// Class name - /// Minimum number of elements to wait for - /// Optional timeout in milliseconds - /// - public WebElements FindElementsByClassName(string classname, int minimum = 0, int timeout = 0) { - throw new SeleniumError("FindElementsByClassName has been renamed to FindElementsByClass"); - } - - /// - /// Deprecated, use FindElementsByCss intead. - /// - /// CSS selector - /// Minimum number of elements to wait for - /// Optional timeout in milliseconds - /// - public WebElements FindElementsByCssSelector(string cssselector, int minimum = 0, int timeout = 0) { - throw new SeleniumError("FindElementsByCssSelector has been renamed to FindElementsByCss"); - } - - /// - /// Deprecated, use FindElementsByTag intead. - /// - /// Tag name - /// Minimum number of elements to wait for - /// Optional timeout in milliseconds - /// - public WebElements FindElementsByTagName(string tagname, int minimum = 0, int timeout = 0) { - throw new SeleniumError("FindElementsByTagName has been renamed to FindElementsByTag"); - } - - #endregion - - /// /// Returns a web element matching the given method and value or null if no element found ///