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:
parent
7972916be7
commit
cb4b9108d1
7 changed files with 15 additions and 15 deletions
|
@ -135,7 +135,7 @@ Web::WebDriver::Response Session::stop()
|
|||
JsonObject Session::get_timeouts()
|
||||
{
|
||||
// 1. Let timeouts be the timeouts object for session’s 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 request’s 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue