mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:18:11 +00:00
WebContent+WebDriver: Move Find Element From Element to WebContent
This commit is contained in:
parent
6dca784fc4
commit
5a750dc58c
6 changed files with 55 additions and 52 deletions
|
@ -636,8 +636,7 @@ Web::WebDriver::Response Client::handle_find_element_from_element(Vector<StringV
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/element/<element_id>/element");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->find_element_from_element(payload, parameters[1]));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().find_element_from_element(payload, parameters[1]);
|
||||
}
|
||||
|
||||
// 12.3.5 Find Elements From Element, https://w3c.github.io/webdriver/#dfn-find-elements-from-element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue