diff --git a/py/selenium/webdriver/remote/webelement.py b/py/selenium/webdriver/remote/webelement.py index e5a3adad0d7b4..08c772eaad56e 100644 --- a/py/selenium/webdriver/remote/webelement.py +++ b/py/selenium/webdriver/remote/webelement.py @@ -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(