Test: Monkey driver: Improve navigate step logging.

This commit is contained in:
Michael Drake 2018-11-04 11:07:36 +00:00
parent 54be19e6c8
commit 3ea6fadac2

View File

@ -82,7 +82,9 @@ def run_test_step_action_window_close(ctx, step):
def run_test_step_action_navigate(ctx, step):
print(get_indent(ctx) + "Action: " + step["action"])
assert_browser(ctx)
assert(step.get('url') is not None)
tag = step['window']
print(get_indent(ctx) + " " + tag + " --> " + step['url'])
win = ctx['windows'].get(tag)
assert(win is not None)
win.go(step['url'])