Skip to content

Commit

Permalink
[py] Remove unused util methods from remote
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Jun 29, 2018
1 parent 3e99112 commit 02f793d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions py/selenium/webdriver/remote/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 02f793d

Please sign in to comment.