mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
WebDriver+Browser: Implement GET /session/{id}/element/{id}/screenshot
This commit is contained in:
parent
3c1c2994f1
commit
b0eb45f7c7
9 changed files with 79 additions and 0 deletions
|
@ -31,6 +31,7 @@ endpoint WebDriverSessionClient {
|
|||
update_cookie(Web::Cookie::Cookie cookie) =|
|
||||
get_document_element() => (Optional<i32> document_element_id)
|
||||
query_selector_all(i32 start_node_id, String selector) => (Optional<Vector<i32>> elements_ids)
|
||||
scroll_element_into_view(i32 element_id) => ()
|
||||
is_element_selected(i32 element_id) => (bool selected)
|
||||
get_element_attribute(i32 element_id, String name) => (Optional<String> atttibute)
|
||||
get_element_property(i32 element_id, String name) => (Optional<String> property)
|
||||
|
@ -41,4 +42,5 @@ endpoint WebDriverSessionClient {
|
|||
get_element_rect(i32 element_id) => (Gfx::IntRect rect)
|
||||
is_element_enabled(i32 element_id) => (bool enabled)
|
||||
take_screenshot() => (Gfx::ShareableBitmap data)
|
||||
take_element_screenshot(i32 element_id) => (Gfx::ShareableBitmap data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue