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:
parent
67236d9573
commit
5ffff09e05
7 changed files with 27 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue