/* * Copyright (c) 2022, Linus Groh * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::WebDriver { // https://w3c.github.io/webdriver/#dfn-timeouts-configuration struct TimeoutsConfiguration { Optional script_timeout { 30'000 }; u64 page_load_timeout { 300'000 }; u64 implicit_wait_timeout { 0 }; }; JsonObject timeouts_object(TimeoutsConfiguration const&); ErrorOr json_deserialize_as_a_timeouts_configuration(JsonValue const&); }