diff options
Diffstat (limited to 'test/monkey_driver.py')
-rwxr-xr-x | test/monkey_driver.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/monkey_driver.py b/test/monkey_driver.py index a442f4ecd..2a9234df9 100755 --- a/test/monkey_driver.py +++ b/test/monkey_driver.py @@ -588,6 +588,16 @@ def run_test_step_action_js_exec(ctx, step): win.js_exec(cmd) +def run_test_step_action_page_info_state(ctx, step): + print(get_indent(ctx) + "Action: " + step["action"]) + assert_browser(ctx) + tag = step['window'] + win = ctx['windows'].get(tag) + assert win is not None + match = step['match'] + assert win.page_info_state == match + + def run_test_step_action_quit(ctx, step): print(get_indent(ctx) + "Action: " + step["action"]) assert_browser(ctx) @@ -619,6 +629,8 @@ STEP_HANDLERS = { "clear-log": run_test_step_action_clear_log, "wait-log": run_test_step_action_wait_log, "js-exec": run_test_step_action_js_exec, + "page-info-state": + run_test_step_action_page_info_state, "quit": run_test_step_action_quit, } |