Skip to content

Commit 539e1fc

Browse files
nvborisenkosandeepsuryaprasad
authored andcommitted
[dotnet] Revert deprecation of GetAttribute method (SeleniumHQ#14956)
1 parent 1aec5a8 commit 539e1fc

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

dotnet/src/support/Events/EventFiringWebDriver.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,6 @@ public void Click()
16131613
/// </summary>
16141614
/// <param name="attributeName">Attribute you wish to get details of</param>
16151615
/// <returns>The attribute's current value or null if the value is not set.</returns>
1616-
[Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
16171616
public string GetAttribute(string attributeName)
16181617
{
16191618
string attribute = string.Empty;

dotnet/src/webdriver/IWebElement.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ public interface IWebElement : ISearchContext
172172
/// </list>
173173
/// </remarks>
174174
/// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
175-
[Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
176175
string GetAttribute(string attributeName);
177176

178177
/// <summary>

dotnet/src/webdriver/WebElement.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ public virtual ReadOnlyCollection<IWebElement> FindElements(string mechanism, st
411411
/// via JavaScript.
412412
/// </remarks>
413413
/// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
414-
[Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
415414
public virtual string GetAttribute(string attributeName)
416415
{
417416
Response commandResponse = null;

0 commit comments

Comments
 (0)