mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
WebDriver+Browser: Implement GET /session/{id}/source
This commit is contained in:
parent
82af1557dd
commit
61d0b66bfb
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/trflynn89
Commit: 61d0b66bfb
Pull-request: https://github.com/SerenityOS/serenity/pull/15897
Reviewed-by: https://github.com/linusg
9 changed files with 49 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_serialize_source = [this]() {
|
||||
return active_tab().view().serialize_source();
|
||||
};
|
||||
|
||||
new_tab.webdriver_endpoints().on_execute_script = [this](String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) {
|
||||
return active_tab().view().webdriver_execute_script(body, json_arguments, timeout, async);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue