Skip to content

Commit

Permalink
[dotnet] Deprecate WebElement.GetAttribute() (#14676)
Browse files Browse the repository at this point in the history
  • Loading branch information
shbenzer authored Oct 31, 2024
1 parent 33c7169 commit ac523a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/src/webdriver/IWebElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// limitations under the License.
// </copyright>

using System;
using System.Drawing;

namespace OpenQA.Selenium
Expand Down Expand Up @@ -170,6 +171,7 @@ public interface IWebElement : ISearchContext
/// </list>
/// </remarks>
/// <exception cref="StaleElementReferenceException">Thrown when the target element is no longer valid in the document DOM.</exception>
[Obsolete("Use GetDomAttribute(string attributeName) or GetDomProperty(string propertyName). GetAttribute(string attributeName) will be removed in Selenium 6.")]
string GetAttribute(string attributeName);

/// <summary>
Expand Down

0 comments on commit ac523a5

Please sign in to comment.