mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
WebDriver+Friends: Add IPC and plumbing for Element-getting
This extends the IPC calls `get_document_element` and `query_selector_all` to be usable by the WebDriver. For this the `WebDriverConnection` provides the same interfaces and takes care of routing the data through the Browser.
This commit is contained in:
parent
281991057c
commit
5d762bd448
7 changed files with 49 additions and 0 deletions
|
@ -515,6 +515,16 @@ OrderedHashMap<String, String> OutOfProcessWebView::get_session_storage_entries(
|
|||
return client().get_session_storage_entries();
|
||||
}
|
||||
|
||||
Optional<i32> OutOfProcessWebView::get_document_element()
|
||||
{
|
||||
return client().get_document_element();
|
||||
}
|
||||
|
||||
Optional<Vector<i32>> OutOfProcessWebView::query_selector_all(i32 start_node_id, String const& selector)
|
||||
{
|
||||
return client().query_selector_all(start_node_id, selector);
|
||||
}
|
||||
|
||||
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