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

WebDriver+Browser: Implement GET /session/{id}/element/{id}/screenshot

This commit is contained in:
Timothy Flynn 2022-11-04 20:28:42 -04:00 committed by Linus Groh
parent 3c1c2994f1
commit b0eb45f7c7
9 changed files with 79 additions and 0 deletions

View file

@ -76,6 +76,7 @@ public:
ErrorOr<JsonValue, WebDriverError> delete_cookie(StringView name);
ErrorOr<JsonValue, WebDriverError> delete_all_cookies();
ErrorOr<JsonValue, WebDriverError> take_screenshot();
ErrorOr<JsonValue, WebDriverError> take_element_screenshot(StringView element_id);
private:
void delete_cookies(Optional<StringView> const& name = {});