From 39bbe79b8667fcb98d1080c2fd3392ec4900c53b Mon Sep 17 00:00:00 2001 From: Folker Bernitt Date: Fri, 11 Sep 2015 14:57:31 +0200 Subject: Run javascript instead of sleep - Issue #456 - Try to end up after all the JS that needs to run --- service/test/functional/features/steps/tag_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/test/functional/features') diff --git a/service/test/functional/features/steps/tag_list.py b/service/test/functional/features/steps/tag_list.py index ff7f848d..a715dc67 100644 --- a/service/test/functional/features/steps/tag_list.py +++ b/service/test/functional/features/steps/tag_list.py @@ -33,14 +33,14 @@ def expand_side_nav(context): toggle = find_element_by_class_name(context, 'side-nav-toggle') toggle.click() + context.browser.execute_script('true') # execute something so that page hopefully is rendered + @when('I select the tag \'{tag}\'') def impl(context, tag): wait_for_user_alert_to_disapear(context) expand_side_nav(context) - time.sleep(.5) # need to find something that tells us that side nav is completely loaded - wait_until_element_is_visible_by_locator(context, (By.ID, 'tag-%s' % tag), timeout=20) e = find_element_by_id(context, 'tag-%s' % tag) -- cgit v1.2.3