Implement webdriver commands for back/forward/title/handles.

This commit is contained in:
James Graham 2015-05-06 12:22:10 +01:00
parent b762758366
commit 1576107c45
5 changed files with 47 additions and 5 deletions

View file

@ -791,7 +791,9 @@ impl ScriptTask {
let page = self.root_page();
match msg {
WebDriverScriptCommand::EvaluateJS(script, reply) =>
webdriver_handlers::handle_evaluate_js(&page, pipeline_id, script, reply)
webdriver_handlers::handle_evaluate_js(&page, pipeline_id, script, reply),
WebDriverScriptCommand::GetTitle(reply) =>
webdriver_handlers::handle_get_title(&page, pipeline_id, reply)
}
}