From 7f4d2ef0d6f65dd987af9ff5a1c45ce9865995fe Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 4 Nov 2024 16:18:20 -0500 Subject: [PATCH] WebDriver: Pass capability-related options along to new windows --- Userland/Services/WebDriver/Session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Userland/Services/WebDriver/Session.cpp b/Userland/Services/WebDriver/Session.cpp index 5fb77e41dca..e251473e23c 100644 --- a/Userland/Services/WebDriver/Session.cpp +++ b/Userland/Services/WebDriver/Session.cpp @@ -142,6 +142,13 @@ ErrorOr> Session::create_server(NonnullRefPtrclose_session(session_id()); }; + + web_content_connection->async_set_page_load_strategy(m_page_load_strategy); + web_content_connection->async_set_strict_file_interactability(m_strict_file_interactiblity); + web_content_connection->async_set_unhandled_prompt_behavior(m_unhandled_prompt_behavior); + if (m_timeouts_configuration.has_value()) + web_content_connection->async_set_timeouts(*m_timeouts_configuration); + m_windows.set(window_handle, Session::Window { window_handle, move(web_content_connection) }); if (m_current_window_handle.is_empty())