1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:02:06 +00:00

LibWebView+WebConent: Add an IPC to get an element's selected state

This commit is contained in:
Timothy Flynn 2022-11-03 17:04:24 -04:00 committed by Tim Flynn
parent d907fb304e
commit 4067138702
5 changed files with 31 additions and 0 deletions

View file

@ -530,6 +530,11 @@ Optional<Vector<i32>> OutOfProcessWebView::query_selector_all(i32 start_node_id,
return client().query_selector_all(start_node_id, selector);
}
bool OutOfProcessWebView::is_element_selected(i32 element_id)
{
return client().is_element_selected(element_id);
}
Optional<String> OutOfProcessWebView::get_element_attribute(i32 element_id, String const& name)
{
return client().get_element_attribute(element_id, name);