Skip to content

Commit

Permalink
[dotnet] remove deprecated locator functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 23, 2022
1 parent 5673c43 commit a66def2
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 377 deletions.
45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByClassName.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByCssSelector.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsById.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByLinkText.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByName.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByPartialLinkText.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByTagName.cs

This file was deleted.

45 changes: 0 additions & 45 deletions dotnet/src/webdriver/Internal/IFindsByXPath.cs

This file was deleted.

16 changes: 0 additions & 16 deletions dotnet/src/webdriver/RelativeBy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,6 @@ private RelativeBy(object root, List<object> filters) : this()
}
}

/// <summary>
/// Creates a new <see cref="RelativeBy"/> for finding elements with the specified tag name.
/// </summary>
/// <param name="tagName">The tag name of the element to find.</param>
/// <returns>A <see cref="RelativeBy"/> object to be used in finding the elements.</returns>
[Obsolete("Use the WithLocator method instead, passing By.TagName.")]
public static RelativeBy WithTagName(string tagName)
{
if (string.IsNullOrEmpty(tagName))
{
throw new ArgumentException("Tag name must not be null or the empty string", nameof(tagName));
}

return new RelativeBy(By.TagName(tagName));
}

/// <summary>
/// Creates a new <see cref="RelativeBy"/> for finding elements with the specified tag name.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/Remote/RemoteWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace OpenQA.Selenium.Remote
/// }
/// </code>
/// </example>
public class RemoteWebDriver : WebDriver, IDevTools, IFindsById, IFindsByClassName, IFindsByLinkText, IFindsByName, IFindsByTagName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector
public class RemoteWebDriver : WebDriver, IDevTools
{
public readonly string RemoteDevToolsEndPointCapabilityName = "se:cdp";
public readonly string RemoteDevToolsVersionCapabilityName = "se:cdpVersion";
Expand Down
Loading

0 comments on commit a66def2

Please sign in to comment.