mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
WebContent+WebDriver: Move Get/Set Timeouts to WebContent
This commit is contained in:
parent
cb4b9108d1
commit
04f41bda52
6 changed files with 33 additions and 33 deletions
|
@ -476,8 +476,7 @@ Web::WebDriver::Response Client::handle_get_timeouts(Vector<StringView> const& p
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling GET /session/<session id>/timeouts");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = session->get_timeouts();
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().get_timeouts();
|
||||
}
|
||||
|
||||
// 9.2 Set Timeouts, https://w3c.github.io/webdriver/#dfn-set-timeouts
|
||||
|
@ -486,8 +485,7 @@ Web::WebDriver::Response Client::handle_set_timeouts(Vector<StringView> const& p
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session id>/timeouts");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->set_timeouts(payload));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().set_timeouts(payload);
|
||||
}
|
||||
|
||||
// 10.1 Navigate To, https://w3c.github.io/webdriver/#dfn-navigate-to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue