From c4a0d941b34f9ff0cb03089b185f343a72d8f891 Mon Sep 17 00:00:00 2001 From: Tiago Ferraz Date: Thu, 26 Mar 2015 12:46:13 -0300 Subject: Fixing small error on def function --- service/test/functional/features/steps/mail_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/test/functional/features') diff --git a/service/test/functional/features/steps/mail_list.py b/service/test/functional/features/steps/mail_list.py index cd41d3db..cbd03c67 100644 --- a/service/test/functional/features/steps/mail_list.py +++ b/service/test/functional/features/steps/mail_list.py @@ -98,7 +98,7 @@ def impl(context): @when('I delete the email') def impl(context): def last_email(): - wait_until_elements_are_visible_by_locator(context, (By.XPATH, '//*[@id="mail-list"]//li'))[0] + return wait_until_elements_are_visible_by_locator(context, (By.XPATH, '//*[@id="mail-list"]//li'))[0] context.current_mail_id = last_email().get_attribute('id') last_email().find_element_by_tag_name('input').click() find_element_by_id(context, 'delete-selected').click() -- cgit v1.2.3