1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

WebDriver+Browser: Implement GET /session/{id}/element/{id}/rect

This commit is contained in:
Timothy Flynn 2022-11-03 12:53:27 -04:00 committed by Linus Groh
parent a490bca29b
commit 08c687ef20
9 changed files with 68 additions and 0 deletions

View file

@ -631,6 +631,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_element_tag_name(element_id);
};
new_tab.webdriver_endpoints().on_get_element_rect = [this](i32 element_id) {
return active_tab().view().get_element_rect(element_id);
};
new_tab.webdriver_endpoints().on_serialize_source = [this]() {
return active_tab().view().serialize_source();
};