2023-04-20 17:41:32 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
#include <AK/StringView.h>
|
2024-11-03 07:22:54 -05:00
|
|
|
#include <LibJS/Runtime/Value.h>
|
2025-07-19 19:35:33 -07:00
|
|
|
#include <LibWeb/Export.h>
|
2023-04-20 17:41:32 +01:00
|
|
|
#include <LibWeb/Forward.h>
|
2024-11-03 07:22:54 -05:00
|
|
|
#include <LibWeb/WebDriver/Error.h>
|
2023-04-20 17:41:32 +01:00
|
|
|
|
|
|
|
namespace Web::WebDriver {
|
|
|
|
|
2024-11-03 07:22:54 -05:00
|
|
|
JsonObject window_proxy_reference_object(HTML::WindowProxy const&);
|
2023-04-20 17:41:32 +01:00
|
|
|
|
2024-11-03 07:22:54 -05:00
|
|
|
bool represents_a_web_frame(JS::Value);
|
2024-11-15 04:01:23 +13:00
|
|
|
ErrorOr<GC::Ref<HTML::WindowProxy>, WebDriver::Error> deserialize_web_frame(JS::Object const&);
|
2023-04-20 17:41:32 +01:00
|
|
|
|
2024-11-03 07:22:54 -05:00
|
|
|
bool represents_a_web_window(JS::Value);
|
2024-11-15 04:01:23 +13:00
|
|
|
ErrorOr<GC::Ref<HTML::WindowProxy>, WebDriver::Error> deserialize_web_window(JS::Object const&);
|
2023-04-20 17:41:32 +01:00
|
|
|
|
2025-07-19 19:35:33 -07:00
|
|
|
WEB_API ErrorOr<void, WebDriver::Error> ensure_browsing_context_is_open(GC::Ptr<HTML::BrowsingContext>);
|
2025-02-03 09:22:44 -05:00
|
|
|
|
2023-04-20 17:41:32 +01:00
|
|
|
}
|