Skip to content

Commit b3ef505

Browse files
[dotnet] Propagate IWebDriver.GetAttribute obsoletion to WebDriver (#14802)
1 parent b501589 commit b3ef505

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dotnet/src/support/Events/EventFiringWebDriver.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ 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.")]
16161617
public string GetAttribute(string attributeName)
16171618
{
16181619
string attribute = string.Empty;

dotnet/src/webdriver/WebElement.cs

+1
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ 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.")]
414415
public virtual string GetAttribute(string attributeName)
415416
{
416417
Response commandResponse = null;

0 commit comments

Comments
 (0)