mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
WebDriver: Add boilerplate for endpoint 15.7 Perform Actions
Following the structure of the ReleaseActions endpoints, define analogous classes and methods for PerformActions
This commit is contained in:
parent
3ae4ea7b10
commit
ee352e59db
Notes:
github-actions[bot]
2024-09-09 13:12:24 +00:00
Author: https://github.com/noahmbright 🔰
Commit: ee352e59db
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1261
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 33 additions and 0 deletions
|
@ -677,6 +677,15 @@ Web::WebDriver::Response Client::delete_all_cookies(Web::WebDriver::Parameters p
|
|||
return session->web_content_connection().delete_all_cookies();
|
||||
}
|
||||
|
||||
// 15.7 Perform Actions, https://w3c.github.io/webdriver/#perform-actions
|
||||
// POST /session/{session id}/actions
|
||||
Web::WebDriver::Response Client::perform_actions(Web::WebDriver::Parameters parameters, JsonValue)
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/actions");
|
||||
auto session = TRY(find_session_with_id(parameters[0]));
|
||||
return session->web_content_connection().perform_actions();
|
||||
}
|
||||
|
||||
// 15.8 Release Actions, https://w3c.github.io/webdriver/#release-actions
|
||||
// DELETE /session/{session id}/actions
|
||||
Web::WebDriver::Response Client::release_actions(Web::WebDriver::Parameters parameters, JsonValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue