From 02f793dd3779444de1232417ea2135a553517aa5 Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Fri, 29 Jun 2018 15:48:40 +0100 Subject: [PATCH] [py] Remove unused util methods from remote --- py/selenium/webdriver/remote/utils.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/py/selenium/webdriver/remote/utils.py b/py/selenium/webdriver/remote/utils.py index 5507ea5a4c7a6..6560b273bc517 100644 --- a/py/selenium/webdriver/remote/utils.py +++ b/py/selenium/webdriver/remote/utils.py @@ -38,28 +38,6 @@ def load_json(s): return json.loads(s) -def handle_find_element_exception(e): - if ("Unable to find" in e.response["value"]["message"] or "Unable to locate" in e.response["value"]["message"]): - raise NoSuchElementException("Unable to locate element:") - else: - raise e - - -def return_value_if_exists(resp): - if resp and "value" in resp: - return resp["value"] - - -def get_root_parent(elem): - parent = elem.parent - while True: - try: - parent.parent - parent = parent.parent - except AttributeError: - return parent - - def unzip_to_temp_dir(zip_file_name): """Unzip zipfile to a temporary directory.