We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56b3d0 commit bb3053bCopy full SHA for bb3053b
py/selenium/webdriver/remote/webelement.py
@@ -173,6 +173,13 @@ def get_attribute(self, name) -> str | None:
173
# Check if the "active" CSS class is applied to an element.
174
is_active = "active" in target_element.get_attribute("class")
175
"""
176
+
177
+ warnings.warn(
178
+ "using WebElement.get_attribute() has been deprecated. Please use get_dom_attribute() instead.",
179
+ DeprecationWarning,
180
+ stacklevel=2,
181
+ )
182
183
if getAttribute_js is None:
184
_load_js()
185
attribute_value = self.parent.execute_script(
0 commit comments