Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dotnet] Added Deprecation to WebElement.GetAttribute() per #13334 #14676

Merged
merged 10 commits into from
Oct 31, 2024
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
Loading