From 12106346db9c5233ba0109a4e66c3fd6f0eaa920 Mon Sep 17 00:00:00 2001 From: Viet Nguyen Duc Date: Tue, 26 Nov 2024 20:42:01 +0700 Subject: [PATCH] [py] Revert the Deprecation warnings of WebElement.get_attribute() (#14808) Revert "[py] Added Deprecation of WebElement.get_attribute() per #13334 (#14675)" This reverts commit bb3053ba23a5798fa65fd2bb52bbb174ac0a98d2. --- py/selenium/webdriver/remote/webelement.py | 7 ------- 1 file changed, 7 deletions(-) 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(