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:
parent
a490bca29b
commit
08c687ef20
9 changed files with 68 additions and 0 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue