mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +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
|
@ -535,6 +535,16 @@ Optional<String> OutOfProcessWebView::get_element_property(i32 element_id, Strin
|
|||
return client().get_element_property(element_id, name);
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::get_active_documents_type()
|
||||
{
|
||||
return client().get_active_documents_type();
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::get_computed_value_for_element(i32 element_id, String const& property_name)
|
||||
{
|
||||
return client().get_computed_value_for_element(element_id, property_name);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
|
||||
{
|
||||
client().async_set_content_filters(filters);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue