diff options
-rw-r--r-- | service/test/functional/features/steps/common.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/test/functional/features/steps/common.py b/service/test/functional/features/steps/common.py index 0294293d..558361d0 100644 --- a/service/test/functional/features/steps/common.py +++ b/service/test/functional/features/steps/common.py @@ -112,3 +112,11 @@ def mail_subject(context): def reply_subject(context): e = find_element_by_css_selector(context, '#reply-subject') return e.text + + +def get_console_log(context): + logs = context.browser.get_log('browser') + for entry in logs: + msg = entry['message'] + if not (msg.startswith('x off') or msg.startswith('<- on')): + print entry['message'] |