summaryrefslogtreecommitdiff
path: root/service/test/functional/features/steps/mail_list.py
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2014-10-15 10:39:04 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2014-10-16 09:57:28 +0200
commit693957054255b1807ae9c09478a06e191114b7fb (patch)
tree5afdbb556dccc69f2727c87a14fbd826a4fcc2ad /service/test/functional/features/steps/mail_list.py
parentb23df828897bb6c0a52804914c35873ea4b09e9d (diff)
Added some wait until visible to functional tests to make them more stable.
Diffstat (limited to 'service/test/functional/features/steps/mail_list.py')
-rw-r--r--service/test/functional/features/steps/mail_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py
index a1c83848..6a764568 100644
--- a/service/test/functional/features/steps/mail_list.py
+++ b/service/test/functional/features/steps/mail_list.py
@@ -42,7 +42,7 @@ def impl(context):
@when('I open the first mail in the mail list')
def impl(context):
- elements = context.browser.find_elements_by_xpath('//*[@id="mail-list"]//a')
+ elements = wait_until_elements_are_visible_by_locator(context, (By.XPATH, '//*[@id="mail-list"]//a'))
context.current_mail_id = elements[0].get_attribute('href').split('/')[-1]
elements[0].click()