mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
WebContent+Friends: Add get_element_text IPC and plumbing
This commit is contained in:
parent
67236d9573
commit
5ffff09e05
Notes:
sideshowbarker
2024-07-17 04:55:42 +09:00
Author: https://github.com/martinfalisse
Commit: 5ffff09e05
Pull-request: https://github.com/SerenityOS/serenity/pull/15861
Reviewed-by: https://github.com/linusg
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