diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/WebDriver/Contexts.h')
-rw-r--r-- | Userland/Libraries/LibWeb/WebDriver/Contexts.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebDriver/Contexts.h b/Userland/Libraries/LibWeb/WebDriver/Contexts.h new file mode 100644 index 0000000000..11fa2c82f7 --- /dev/null +++ b/Userland/Libraries/LibWeb/WebDriver/Contexts.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2023, Linus Groh <linusg@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <AK/Forward.h> +#include <AK/StringView.h> +#include <LibWeb/Forward.h> + +namespace Web::WebDriver { + +// https://w3c.github.io/webdriver/#dfn-web-window-identifier +static constexpr auto WEB_WINDOW_IDENTIFIER = "window-fcc6-11e5-b4f8-330a88ab9d7f"sv; + +// https://w3c.github.io/webdriver/#dfn-web-frame-identifier +static constexpr auto WEB_FRAME_IDENTIFIER = "frame-075b-4da1-b6ba-e579c2d3230a"sv; + +JsonObject window_proxy_reference_object(HTML::WindowProxy const&); + +} |