1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibWeb+WebDriver: Move the timeouts configuration object to LibWeb

This commit is contained in:
Timothy Flynn 2022-11-11 14:22:03 -05:00 committed by Linus Groh
parent 7972916be7
commit cb4b9108d1
7 changed files with 15 additions and 15 deletions

View file

@ -135,7 +135,7 @@ Web::WebDriver::Response Session::stop()
JsonObject Session::get_timeouts()
{
// 1. Let timeouts be the timeouts object for sessions timeouts configuration
auto timeouts = timeouts_object(m_timeouts_configuration);
auto timeouts = Web::WebDriver::timeouts_object(m_timeouts_configuration);
// 2. Return success with data timeouts.
return timeouts;
@ -145,7 +145,7 @@ JsonObject Session::get_timeouts()
Web::WebDriver::Response Session::set_timeouts(JsonValue const& payload)
{
// 1. Let timeouts be the result of trying to JSON deserialize as a timeouts configuration the requests parameters.
auto timeouts = TRY(json_deserialize_as_a_timeouts_configuration(payload));
auto timeouts = TRY(Web::WebDriver::json_deserialize_as_a_timeouts_configuration(payload));
// 2. Make the session timeouts the new timeouts.
m_timeouts_configuration = move(timeouts);