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.