We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e99112 commit 02f793dCopy full SHA for 02f793d
py/selenium/webdriver/remote/utils.py
@@ -38,28 +38,6 @@ def load_json(s):
38
return json.loads(s)
39
40
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
63
def unzip_to_temp_dir(zip_file_name):
64
"""Unzip zipfile to a temporary directory.
65
0 commit comments