summaryrefslogtreecommitdiff
path: root/fake-service/features/steps/common.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2014-10-03 16:56:04 -0300
committerVictor Shyba <victor.shyba@gmail.com>2014-10-03 16:56:04 -0300
commit21526245682b7c3b8ec66751bceb8ce039aa4450 (patch)
tree75ee182a48255fe36c093a2eb48914b6f24dbae3 /fake-service/features/steps/common.py
parentd57e4993ece29da34c370a96732c820798c5048b (diff)
No more archive dialog, updating functional tests #53
Diffstat (limited to 'fake-service/features/steps/common.py')
-rw-r--r--fake-service/features/steps/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fake-service/features/steps/common.py b/fake-service/features/steps/common.py
index ae46b04a..8255a9de 100644
--- a/fake-service/features/steps/common.py
+++ b/fake-service/features/steps/common.py
@@ -70,8 +70,8 @@ def wait_until_button_is_visible(context, title):
locator_tuple = (By.XPATH, ("//%s[contains(.,'%s')]" % ('button', title)))
wait.until(EC.visibility_of_element_located(locator_tuple))
-def click_button(context, title):
- button = find_element_containing_text(context, title, element_type='button')
+def click_button(context, title, element='button'):
+ button = find_element_containing_text(context, title, element_type=element)
button.click()
def mail_subject(context):