1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibWeb+WebContent: Add WebDriver infrastructure for executing scripts

This cannot be done on the Browser or WebDriver ends, or via the
existing run_javascript() IPC endpoint, as we cannot transfer JS objects
through the IPC boundary (yet), only serialized JSON, so the individual
WebDriver steps around script execution need to run in the WebContent
process.
This commit is contained in:
Linus Groh 2022-11-02 18:02:19 +00:00
parent ce8c34a8c9
commit b572a91a6f
6 changed files with 455 additions and 0 deletions

View file

@ -96,6 +96,8 @@ private:
virtual Messages::WebContentServer::GetSelectedTextResponse get_selected_text() override;
virtual void select_all() override;
virtual Messages::WebContentServer::WebdriverExecuteScriptResponse webdriver_execute_script(String const& body, Vector<String> const& json_arguments, Optional<u64> const& timeout, bool async) override;
void flush_pending_paint_requests();
NonnullOwnPtr<PageHost> m_page_host;