Skip to content

Commit 02f793d

Browse files
[py] Remove unused util methods from remote
1 parent 3e99112 commit 02f793d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

py/selenium/webdriver/remote/utils.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,6 @@ def load_json(s):
3838
return json.loads(s)
3939

4040

41-
def handle_find_element_exception(e):
42-
if ("Unable to find" in e.response["value"]["message"] or "Unable to locate" in e.response["value"]["message"]):
43-
raise NoSuchElementException("Unable to locate element:")
44-
else:
45-
raise e
46-
47-
48-
def return_value_if_exists(resp):
49-
if resp and "value" in resp:
50-
return resp["value"]
51-
52-
53-
def get_root_parent(elem):
54-
parent = elem.parent
55-
while True:
56-
try:
57-
parent.parent
58-
parent = parent.parent
59-
except AttributeError:
60-
return parent
61-
62-
6341
def unzip_to_temp_dir(zip_file_name):
6442
"""Unzip zipfile to a temporary directory.
6543

0 commit comments

Comments
 (0)