mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
LibWebView+WebContent: Add an IPC to scroll an element into view
Note that even though there is no response, this IPC has to be synchronous to allow all scroll events to trigger before returning to the calling WebDriver process.
This commit is contained in:
parent
3510fbbea8
commit
424e80ee75
5 changed files with 28 additions and 0 deletions
|
@ -42,6 +42,7 @@ endpoint WebContentServer
|
|||
|
||||
get_document_element() => (Optional<i32> node_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> attribute)
|
||||
get_element_property(i32 element_id, String name) => (Optional<String> property)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue