From 9bc532891e87d359627bfe4f3b3c1d669f321905 Mon Sep 17 00:00:00 2001
From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com>
Date: Fri, 27 Dec 2024 20:29:30 +0300
Subject: [PATCH] [dotnet] Revert deprecation of GetAttribute method
---
dotnet/src/support/Events/EventFiringWebDriver.cs | 1 -
dotnet/src/webdriver/IWebElement.cs | 1 -
dotnet/src/webdriver/WebElement.cs | 1 -
3 files changed, 3 deletions(-)
diff --git a/dotnet/src/support/Events/EventFiringWebDriver.cs b/dotnet/src/support/Events/EventFiringWebDriver.cs
index cfcc7d0cc5154..e68b261e387c3 100644
--- a/dotnet/src/support/Events/EventFiringWebDriver.cs
+++ b/dotnet/src/support/Events/EventFiringWebDriver.cs
@@ -1613,7 +1613,6 @@ public void Click()
///
/// Attribute you wish to get details of
/// The attribute's current value or null if the value is not set.
- [Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
public string GetAttribute(string attributeName)
{
string attribute = string.Empty;
diff --git a/dotnet/src/webdriver/IWebElement.cs b/dotnet/src/webdriver/IWebElement.cs
index e96d734ca34a8..026fd8a85d9ca 100644
--- a/dotnet/src/webdriver/IWebElement.cs
+++ b/dotnet/src/webdriver/IWebElement.cs
@@ -172,7 +172,6 @@ public interface IWebElement : ISearchContext
///
///
/// Thrown when the target element is no longer valid in the document DOM.
- [Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
string GetAttribute(string attributeName);
///
diff --git a/dotnet/src/webdriver/WebElement.cs b/dotnet/src/webdriver/WebElement.cs
index b3e4356ca55b1..51cce73e1eb67 100644
--- a/dotnet/src/webdriver/WebElement.cs
+++ b/dotnet/src/webdriver/WebElement.cs
@@ -411,7 +411,6 @@ public virtual ReadOnlyCollection FindElements(string mechanism, st
/// via JavaScript.
///
/// Thrown when the target element is no longer valid in the document DOM.
- [Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
public virtual string GetAttribute(string attributeName)
{
Response commandResponse = null;