1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00

Browser+LibWebView: Add WebDriver IPC plumbing for executing scripts

This commit is contained in:
Linus Groh 2022-11-02 18:08:48 +00:00
parent b572a91a6f
commit 747ba2a88f
7 changed files with 40 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include <LibGfx/Size.h>
#include <LibWeb/Cookie/Cookie.h>
#include <LibWeb/Cookie/ParsedCookie.h>
#include <LibWeb/WebDriver/ExecuteScript.h>
endpoint WebDriverSessionClient {
quit() =|
@ -22,6 +23,7 @@ endpoint WebDriverSessionClient {
set_window_position(Gfx::IntPoint position) =|
maximize_window() =|
minimize_window() =|
execute_script(String body, Vector<String> json_arguments, Optional<u64> timeout, bool async) => (Web::WebDriver::ExecuteScriptResultType result_type, String json_result)
get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies)
get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie)
add_cookie(Web::Cookie::ParsedCookie cookie) =|