diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-01-09 12:12:28 +0100 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-01-09 12:12:28 +0100 |
commit | 453773d0568abff47fb8da2dbf09d678dc41277e (patch) | |
tree | 54dd535db5a5c045ac06b0f71e67bc17324ec6a6 /service/test/functional/features | |
parent | a0677e5c1b913d8229fe8a957ed51328d33921fb (diff) |
Added printing of console.log to functional test common.
Diffstat (limited to 'service/test/functional/features')
-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'] |