1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:47:34 +00:00

WebContent+Friends: Add get_element_text IPC and plumbing

This commit is contained in:
martinfalisse 2022-11-01 10:10:51 +01:00 committed by Linus Groh
parent 67236d9573
commit 5ffff09e05
7 changed files with 27 additions and 0 deletions

View file

@ -607,6 +607,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_computed_value_for_element(element_id, property_name);
};
new_tab.webdriver_endpoints().on_get_element_text = [this](i32 element_id) {
return active_tab().view().get_element_text(element_id);
};
new_tab.webdriver_endpoints().on_get_element_tag_name = [this](i32 element_id) {
return active_tab().view().get_element_tag_name(element_id);
};