mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
WebContent+WebDriver: Move Find Element to WebContent
Note that this does nothing to "fix" how element references are created. We continue to return the element ID because, otherwise, all other element WebDriver endpoints would break. On the bright side, we avoid several IPC round trips now that we perform the entire 'find' operation in the WebContent process; and we are able to work directly on DOM nodes.
This commit is contained in:
parent
15916e5c14
commit
61de50c7fd
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/trflynn89
Commit: 61de50c7fd
Pull-request: https://github.com/SerenityOS/serenity/pull/15998
Reviewed-by: https://github.com/linusg
6 changed files with 120 additions and 58 deletions
|
@ -618,8 +618,7 @@ Web::WebDriver::Response Client::handle_find_element(Vector<StringView> const& p
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/element");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->find_element(payload));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().find_element(payload);
|
||||
}
|
||||
|
||||
// 12.3.3 Find Elements, https://w3c.github.io/webdriver/#dfn-find-elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue