mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47: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
25
Userland/Libraries/LibWeb/WebDriver/TimeoutsConfiguration.h
Normal file
25
Userland/Libraries/LibWeb/WebDriver/TimeoutsConfiguration.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <LibWeb/WebDriver/Error.h>
|
||||
|
||||
namespace Web::WebDriver {
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-timeouts-configuration
|
||||
struct TimeoutsConfiguration {
|
||||
Optional<u64> script_timeout { 30'000 };
|
||||
u64 page_load_timeout { 300'000 };
|
||||
u64 implicit_wait_timeout { 0 };
|
||||
};
|
||||
|
||||
JsonObject timeouts_object(TimeoutsConfiguration const&);
|
||||
ErrorOr<TimeoutsConfiguration, Error> json_deserialize_as_a_timeouts_configuration(JsonValue const&);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue