From ac523a5d0aa5a980a71c5adda3f4dafb0a560409 Mon Sep 17 00:00:00 2001
From: Simon Benzer <69980130+shbenzer@users.noreply.github.com>
Date: Thu, 31 Oct 2024 16:07:12 -0400
Subject: [PATCH] [dotnet] Deprecate WebElement.GetAttribute() (#14676)
---
dotnet/src/webdriver/IWebElement.cs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dotnet/src/webdriver/IWebElement.cs b/dotnet/src/webdriver/IWebElement.cs
index 89261bdd88435..ffe56565fe8f1 100644
--- a/dotnet/src/webdriver/IWebElement.cs
+++ b/dotnet/src/webdriver/IWebElement.cs
@@ -16,6 +16,7 @@
// limitations under the License.
//
+using System;
using System.Drawing;
namespace OpenQA.Selenium
@@ -170,6 +171,7 @@ 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);
///