Skip to content

Commit ac523a5

Browse files
authored
[dotnet] Deprecate WebElement.GetAttribute() (#14676)
1 parent 33c7169 commit ac523a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dotnet/src/webdriver/IWebElement.cs

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// limitations under the License.
1717
// </copyright>
1818

19+
using System;
1920
using System.Drawing;
2021

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

175177
/// <summary>

0 commit comments

Comments
 (0)