mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:28: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
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