WebDriver: Pass capability-related options along to new windows

This commit is contained in:
Timothy Flynn 2024-11-04 16:18:20 -05:00 committed by Andrew Kaster
parent d66b54fec5
commit 7f4d2ef0d6
Notes: github-actions[bot] 2024-11-05 19:07:10 +00:00

View file

@ -142,6 +142,13 @@ ErrorOr<NonnullRefPtr<Core::LocalServer>> Session::create_server(NonnullRefPtr<S
if (m_windows.is_empty())
m_client->close_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())