summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2014-10-14 14:02:24 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2014-10-14 14:02:24 +0200
commit7d9d2a10d50043bdb8cd3f27a88b49ac7bef2691 (patch)
tree7dabbf99bb3e66dbd0b6c59b303819568f373bf2 /service
parent358faac44b6b3e5820a3acdd927b988f0b1ba313 (diff)
Fix pep8 warnings.
Diffstat (limited to 'service')
-rw-r--r--service/test/functional/features/steps/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py
index 4d9ff79c..54b84d40 100644
--- a/service/test/functional/features/steps/common.py
+++ b/service/test/functional/features/steps/common.py
@@ -24,18 +24,22 @@ def wait_until_element_is_invisible_by_locator(context, locator_tuple):
wait = WebDriverWait(context.browser, 10)
wait.until(EC.invisibility_of_element_located(locator_tuple))
+
def wait_until_element_is_deleted(context, locator_tuple):
wait = WebDriverWait(context.browser, 10)
wait.until(lambda s: len(s.find_elements(locator_tuple[0], locator_tuple[1])) == 0)
+
def wait_for_user_alert_to_disapear(context):
wait_until_element_is_invisible_by_locator(context, (By.ID, 'user-alerts'))
+
def wait_until_element_is_visible_by_locator(context, locator_tuple):
wait = WebDriverWait(context.browser, 10)
wait.until(EC.visibility_of_element_located(locator_tuple))
return context.browser.find_element(locator_tuple[0], locator_tuple[1])
+
def fill_by_xpath(context, xpath, text):
field = context.browser.find_element_by_xpath(xpath)
field.send_keys(text)