Skip to content

Commit

Permalink
Revert "[py] Added Deprecation of WebElement.get_attribute() per #13334
Browse files Browse the repository at this point in the history
… (#14675)"

This reverts commit bb3053b.
  • Loading branch information
VietND96 authored Nov 26, 2024
1 parent d87cd35 commit 6625a6b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,6 @@ def get_attribute(self, name) -> str | None:
# Check if the "active" CSS class is applied to an element.
is_active = "active" in target_element.get_attribute("class")
"""

warnings.warn(
"using WebElement.get_attribute() has been deprecated. Please use get_dom_attribute() instead.",
DeprecationWarning,
stacklevel=2,
)

if getAttribute_js is None:
_load_js()
attribute_value = self.parent.execute_script(
Expand Down

0 comments on commit 6625a6b

Please sign in to comment.