Implement TakeElementScreenshot WebDriver command

This commit is contained in:
George Roman 2019-08-09 20:30:56 +03:00
parent a084997afe
commit d3696baf27
12 changed files with 134 additions and 28 deletions

View file

@ -3499,9 +3499,9 @@ where
y,
));
},
WebDriverCommandMsg::TakeScreenshot(_, reply) => {
WebDriverCommandMsg::TakeScreenshot(_, rect, reply) => {
self.compositor_proxy
.send(ToCompositorMsg::CreatePng(reply));
.send(ToCompositorMsg::CreatePng(rect, reply));
},
}
}