From 7d9d2a10d50043bdb8cd3f27a88b49ac7bef2691 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Tue, 14 Oct 2014 14:02:24 +0200 Subject: Fix pep8 warnings. --- service/test/functional/features/steps/common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'service/test/functional/features/steps') 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) -- cgit v1.2.3