Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ 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
Loading