1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

WebDriver+Browser: Implement POST /session/{id}/window/rect

This commit is contained in:
Timothy Flynn 2022-11-02 09:33:24 -04:00 committed by Linus Groh
parent dac91c5790
commit 174248678e
7 changed files with 119 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#include <AK/URL.h>
#include <AK/Vector.h>
#include <LibGfx/Point.h>
#include <LibGfx/Rect.h>
#include <LibGfx/Size.h>
#include <LibWeb/Cookie/Cookie.h>
#include <LibWeb/Cookie/ParsedCookie.h>
@ -14,6 +16,9 @@ endpoint WebDriverSessionClient {
back() =|
forward() =|
get_window_rect() => (Gfx::IntRect rect)
restore_window() =|
set_window_size(Gfx::IntSize size) =|
set_window_position(Gfx::IntPoint position) =|
get_all_cookies() => (Vector<Web::Cookie::Cookie> cookies)
get_named_cookie(String name) => (Optional<Web::Cookie::Cookie> cookie)
add_cookie(Web::Cookie::ParsedCookie cookie) =|