diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-11-11 14:28:57 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-11 22:03:23 +0000 |
commit | 04f41bda524efb1faaf3ae161f65bcde2f45c824 (patch) | |
tree | 8b90be7ec8d622c8e17b3a36ae6db9669e4e9a53 /Userland/Services/WebDriver/Session.cpp | |
parent | cb4b9108d171489611bca83149a1390d8e7027c1 (diff) | |
download | serenity-04f41bda524efb1faaf3ae161f65bcde2f45c824.zip |
WebContent+WebDriver: Move Get/Set Timeouts to WebContent
Diffstat (limited to 'Userland/Services/WebDriver/Session.cpp')
-rw-r--r-- | Userland/Services/WebDriver/Session.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp index f052a85089..526cb35bf7 100644 --- a/Userland/Services/WebDriver/Session.cpp +++ b/Userland/Services/WebDriver/Session.cpp @@ -131,29 +131,6 @@ Web::WebDriver::Response Session::stop() return JsonValue {}; } -// 9.1 Get Timeouts, https://w3c.github.io/webdriver/#dfn-get-timeouts -JsonObject Session::get_timeouts() -{ - // 1. Let timeouts be the timeouts object for session’s timeouts configuration - auto timeouts = Web::WebDriver::timeouts_object(m_timeouts_configuration); - - // 2. Return success with data timeouts. - return timeouts; -} - -// 9.2 Set Timeouts, https://w3c.github.io/webdriver/#dfn-set-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(Web::WebDriver::json_deserialize_as_a_timeouts_configuration(payload)); - - // 2. Make the session timeouts the new timeouts. - m_timeouts_configuration = move(timeouts); - - // 3. Return success with data null. - return JsonValue {}; -} - // 11.1 Get Window Handle, https://w3c.github.io/webdriver/#get-window-handle Web::WebDriver::Response Session::get_window_handle() { |