mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Browser+WebContent+WebDriver: Move Find Elements From Element to WC
This also lets us remove the element location strategy and some WebContent IPC from Browser/LibWebView now that they are unused.
This commit is contained in:
parent
5a750dc58c
commit
560da56a1d
16 changed files with 31 additions and 271 deletions
|
@ -607,14 +607,6 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
return active_tab().view().take_screenshot();
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_get_document_element = [this]() {
|
||||
return active_tab().view().get_document_element();
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_query_selector_all = [this](i32 start_node_id, String const& selector) {
|
||||
return active_tab().view().query_selector_all(start_node_id, selector);
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_scroll_element_into_view = [this](i32 element_id) {
|
||||
active_tab().view().scroll_element_into_view(element_id);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue