mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
WebContent+Friends: Add IPC and plumbing for WebDriver endpoint
To use the `GET /session/{id}/element/{id}/css/{property name}` WebDriver endpoint, two new IPC calls through the Browser are implemented: - get_active_documents_type returns the type of the active document, which is either "xml" or "html" - get_computed_value_for_element returns the computed CSS value (as String) for the given element and CSS property name
This commit is contained in:
parent
eda566d112
commit
202b2be1f2
7 changed files with 70 additions and 0 deletions
|
@ -62,6 +62,8 @@ public:
|
|||
Optional<Vector<i32>> query_selector_all(i32 start_node_id, String const& selector);
|
||||
Optional<String> get_element_attribute(i32 element_id, String const& name);
|
||||
Optional<String> get_element_property(i32 element_id, String const& name);
|
||||
String get_active_documents_type();
|
||||
String get_computed_value_for_element(i32 element_id, String const& property_name);
|
||||
|
||||
void set_content_filters(Vector<String>);
|
||||
void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue