WebDriver: Implement GET /session/{session id}/window/handles endpoint

This commit is contained in:
Linus Groh 2022-10-19 21:41:09 +02:00
commit 6641c99c80
Notes: sideshowbarker 2024-07-17 05:19:22 +09:00
4 changed files with 29 additions and 2 deletions

View file

@ -48,6 +48,7 @@ public:
ErrorOr<JsonValue, HttpError> get_title();
ErrorOr<JsonValue, HttpError> get_window_handle();
ErrorOr<void, Variant<HttpError, Error>> close_window();
ErrorOr<JsonValue, HttpError> get_window_handles() const;
ErrorOr<JsonValue, HttpError> find_element(JsonValue const& payload);
ErrorOr<JsonValue, HttpError> find_elements(JsonValue const& payload);
ErrorOr<JsonValue, HttpError> find_element_from_element(JsonValue const& payload, StringView parameter_element_id);