1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +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:
Tobias Christiansen 2022-10-20 12:02:47 +02:00 committed by Linus Groh
parent eda566d112
commit 202b2be1f2
7 changed files with 70 additions and 0 deletions

View file

@ -72,6 +72,8 @@ public:
Function<Optional<Vector<i32>>(i32 start_node_id, String const&)> on_query_selector_all;
Function<Optional<String>(i32 element_id, String const&)> on_get_element_attribute;
Function<Optional<String>(i32 element_id, String const&)> on_get_element_property;
Function<String()> on_get_active_documents_type;
Function<String(i32 element_id, String const&)> on_get_computed_value_for_element;
enum class InspectorTarget {
Document,