LibWeb: Begin implementing the Element Send Keys endpoint

This commit is contained in:
Timothy Flynn 2024-10-10 20:44:01 -04:00 committed by Andreas Kling
commit 23d134708c
Notes: github-actions[bot] 2024-10-11 07:10:13 +00:00
8 changed files with 349 additions and 127 deletions

View file

@ -220,6 +220,13 @@ Web::WebDriver::Response Session::element_click(String element_id) const
});
}
Web::WebDriver::Response Session::element_send_keys(String element_id, JsonValue payload) const
{
return perform_async_action(web_content_connection().on_actions_performed, [&]() {
return web_content_connection().element_send_keys(move(element_id), move(payload));
});
}
Web::WebDriver::Response Session::perform_actions(JsonValue payload) const
{
return perform_async_action(web_content_connection().on_actions_performed, [&]() {