mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +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
|
@ -645,8 +645,7 @@ Web::WebDriver::Response Client::handle_find_elements_from_element(Vector<String
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/element/<element_id>/elements");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->find_elements_from_element(payload, parameters[1]));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().find_elements_from_element(payload, parameters[1]);
|
||||
}
|
||||
|
||||
// 12.4.1 Is Element Selected, https://w3c.github.io/webdriver/#dfn-is-element-selected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue