Add support for the Get URL WebDriver command.

This commit is contained in:
James Graham 2015-06-15 13:24:49 +01:00
parent 2f4bdc6ad6
commit 9eade19897
3 changed files with 21 additions and 0 deletions

View file

@ -917,6 +917,10 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
self.webdriver.load_channel = Some((id, reply));
}
},
WebDriverCommandMsg::GetUrl(pipeline_id, reply) => {
let pipeline = self.pipeline(pipeline_id);
reply.send(pipeline.url.clone()).unwrap();
}
WebDriverCommandMsg::ScriptCommand(pipeline_id, cmd) => {
let pipeline = self.pipeline(pipeline_id);
let control_msg = ConstellationControlMsg::WebDriverScriptCommand(pipeline_id, cmd);