1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

WebContent+WebDriver: Move Find Elements to WebContent

This commit is contained in:
Timothy Flynn 2022-11-09 15:08:49 -05:00 committed by Linus Groh
parent 61de50c7fd
commit 6dca784fc4
6 changed files with 35 additions and 53 deletions

View file

@ -627,8 +627,7 @@ Web::WebDriver::Response Client::handle_find_elements(Vector<StringView> const&
{
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/elements");
auto* session = TRY(find_session_with_id(parameters[0]));
auto result = TRY(session->find_elements(payload));
return make_json_value(result);
return session->web_content_connection().find_elements(payload);
}
// 12.3.4 Find Element From Element, https://w3c.github.io/webdriver/#dfn-find-element-from-element