mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -64,6 +64,8 @@ static constexpr auto s_webdriver_endpoints = Array {
|
|||
ROUTE(POST, "/session/:session_id/window"sv, switch_to_window),
|
||||
ROUTE(GET, "/session/:session_id/window/handles"sv, get_window_handles),
|
||||
ROUTE(POST, "/session/:session_id/window/new"sv, new_window),
|
||||
ROUTE(POST, "/session/:session_id/frame"sv, switch_to_frame),
|
||||
ROUTE(POST, "/session/:session_id/frame/parent"sv, switch_to_parent_frame),
|
||||
ROUTE(GET, "/session/:session_id/window/rect"sv, get_window_rect),
|
||||
ROUTE(POST, "/session/:session_id/window/rect"sv, set_window_rect),
|
||||
ROUTE(POST, "/session/:session_id/window/maximize"sv, maximize_window),
|
||||
|
@ -89,6 +91,8 @@ static constexpr auto s_webdriver_endpoints = Array {
|
|||
ROUTE(GET, "/session/:session_id/element/:element_id/computedrole"sv, get_computed_role),
|
||||
ROUTE(GET, "/session/:session_id/element/:element_id/computedlabel"sv, get_computed_label),
|
||||
ROUTE(POST, "/session/:session_id/element/:element_id/click"sv, element_click),
|
||||
ROUTE(POST, "/session/:session_id/element/:element_id/clear"sv, element_clear),
|
||||
ROUTE(POST, "/session/:session_id/element/:element_id/value"sv, element_send_keys),
|
||||
ROUTE(GET, "/session/:session_id/source"sv, get_source),
|
||||
ROUTE(POST, "/session/:session_id/execute/sync"sv, execute_script),
|
||||
ROUTE(POST, "/session/:session_id/execute/async"sv, execute_async_script),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue