1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 10:47:44 +00:00
serenity/Userland/Services/WebDriver
Timothy Flynn 1ffaad29e1 WebDriver+Browser: Implement GET /session/{id}/screenshot
This doesn't follow the spec to a tee. Our OutOfProcessWebView already
has a bitmap that can be used as the window screenshot. Therefore, we
can bypass the steps that assume we need to access the window's frame
buffer in-flight.

We also don't create an HTMLCanvasElement. We would need a Document in
the WebDriver process to do so. Instead, we can still run the encoding
steps exactly as-is using the screenshot bitmap.
2022-11-02 17:55:37 +00:00
..
BrowserConnection.cpp WebDriver: Add new WebDriver service 2022-10-12 23:07:42 +02:00
BrowserConnection.h WebDriver: Add new WebDriver service 2022-10-12 23:07:42 +02:00
Client.cpp WebDriver+Browser: Implement GET /session/{id}/screenshot 2022-11-02 17:55:37 +00:00
Client.h WebDriver+Browser: Implement GET /session/{id}/screenshot 2022-11-02 17:55:37 +00:00
CMakeLists.txt WebDriver+Browser: Implement GET /session/{id}/window/rect 2022-11-02 15:41:19 +00:00
main.cpp WebDriver+Browser: Implement GET /session/{id}/screenshot 2022-11-02 17:55:37 +00:00
Session.cpp WebDriver+Browser: Implement GET /session/{id}/screenshot 2022-11-02 17:55:37 +00:00
Session.h WebDriver+Browser: Implement GET /session/{id}/screenshot 2022-11-02 17:55:37 +00:00
TimeoutsConfiguration.cpp WebDriver: Use WebDriverError::from_code() for all error creation 2022-10-21 19:59:03 +02:00
TimeoutsConfiguration.h WebDriver: Rename HttpError -> WebDriverError 2022-10-21 19:59:03 +02:00
WebDriverError.cpp WebDriver: Introduce WebDriver::ErrorCode enum 2022-10-21 19:59:03 +02:00
WebDriverError.h WebDriver: Introduce WebDriver::ErrorCode enum 2022-10-21 19:59:03 +02:00