mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
WebDriver: Add Routes, IPC definitions, and boilerplates
Added the following Routes, IPC definitions, and boilerplates for the missing endpoints: - Switch To Frame - Switch To Parent Frame - Element Clear - Element Send Keys
This commit is contained in:
parent
f3a6a589c8
commit
d1ba317e22
Notes:
github-actions[bot]
2024-09-08 11:59:58 +00:00
Author: https://github.com/hanpham32 🔰
Commit: d1ba317e22
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1264
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 428 additions and 0 deletions
|
@ -58,6 +58,8 @@ public:
|
|||
virtual Response maximize_window(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response minimize_window(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response fullscreen_window(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response switch_to_frame(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response switch_to_parent_frame(Parameters parameters, JsonValue payload) = 0;
|
||||
|
||||
// Extension: https://html.spec.whatwg.org/multipage/interaction.html#user-activation-user-agent-automation
|
||||
virtual Response consume_user_activation(Parameters parameters, JsonValue payload) = 0;
|
||||
|
@ -82,6 +84,8 @@ public:
|
|||
virtual Response get_computed_role(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response get_computed_label(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response element_click(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response element_clear(Parameters parameters, JsonValue payload) = 0;
|
||||
virtual Response element_send_keys(Parameters parameters, JsonValue payload) = 0;
|
||||
|
||||
// 13. Document, https://w3c.github.io/webdriver/#document
|
||||
virtual Response get_source(Parameters parameters, JsonValue payload) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue