From 4e55ebefb0792c3d40db60f2d246d35e2df5fd00 Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Thu, 10 Sep 2015 17:57:59 +0200 Subject: Wait for send button to become enabled to avoid implicit timeout - instead of waiting to not be disabled - Issue #456 --- service/test/functional/features/steps/compose.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'service/test/functional/features/steps') diff --git a/service/test/functional/features/steps/compose.py b/service/test/functional/features/steps/compose.py index 668579b1..e93468a2 100644 --- a/service/test/functional/features/steps/compose.py +++ b/service/test/functional/features/steps/compose.py @@ -49,9 +49,8 @@ def save_impl(context): @when('I send it') def send_impl(context): - assert page_has_css(context, '#send-button[disabled]') is False - context.browser.find_element(By.ID, 'send-button').click() - # wait_until_element_is_deleted(context, (By.ID, 'send-button'), timeout=120) + send_button = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, '#send-button:enabled')) + send_button.click() def _enter_recipient(context, recipients_field, to_type): -- cgit v1.2.3