summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent/WebContentServer.ipc
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-11-02 18:02:19 +0000
committerLinus Groh <mail@linusgroh.de>2022-11-02 23:46:30 +0000
commitb572a91a6f2b71e9d60ff1e2884d1462b5a3e318 (patch)
treedbde1c4b76faf7e1ad2f1a31ec156d02f668a4fd /Userland/Services/WebContent/WebContentServer.ipc
parentce8c34a8c9abf7845a2cc0017da7c89e5d2ac946 (diff)
downloadserenity-b572a91a6f2b71e9d60ff1e2884d1462b5a3e318.zip
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.
Diffstat (limited to 'Userland/Services/WebContent/WebContentServer.ipc')
-rw-r--r--Userland/Services/WebContent/WebContentServer.ipc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc
index 9302fd27be..cbd1830e4d 100644
--- a/Userland/Services/WebContent/WebContentServer.ipc
+++ b/Userland/Services/WebContent/WebContentServer.ipc
@@ -4,6 +4,7 @@
#include <LibGfx/ShareableBitmap.h>
#include <LibWeb/CSS/PreferredColorScheme.h>
#include <LibWeb/CSS/Selector.h>
+#include <LibWeb/WebDriver/ExecuteScript.h>
endpoint WebContentServer
{
@@ -46,6 +47,8 @@ endpoint WebContentServer
get_element_text(i32 element_id) => (String text)
get_element_tag_name(i32 element_id) => (String tag_name)
+ webdriver_execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)
+
run_javascript(String js_source) =|
dump_layout_tree() => (String dump)