mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
WebDriver: Implement GET /session/{session id}/timeouts
endpoint
This commit is contained in:
parent
4db5f6d081
commit
5c32eacac9
Notes:
sideshowbarker
2024-07-17 05:20:59 +09:00
Author: https://github.com/linusg
Commit: 5c32eacac9
Pull-request: https://github.com/SerenityOS/serenity/pull/15700
Reviewed-by: https://github.com/TobyAsE ✅
7 changed files with 68 additions and 2 deletions
|
@ -73,6 +73,16 @@ ErrorOr<void> Session::stop()
|
|||
return {};
|
||||
}
|
||||
|
||||
// 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 = timeouts_object(m_timeouts_configuration);
|
||||
|
||||
// 2. Return success with data timeouts.
|
||||
return timeouts;
|
||||
}
|
||||
|
||||
// 10.1 Navigate To, https://w3c.github.io/webdriver/#dfn-navigate-to
|
||||
ErrorOr<JsonValue, HttpError> Session::navigate_to(JsonValue const& payload)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue