1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

WebDriver+LibWeb: Rename "click" to "element_click"

This matches the name used in the spec, and is unambiguous.
This commit is contained in:
Sam Atkins 2023-01-26 14:11:54 +00:00 committed by Linus Groh
parent 2f3eefe03b
commit c43db5dae7
7 changed files with 8 additions and 8 deletions

View file

@ -1192,7 +1192,7 @@ Messages::WebDriverClient::GetComputedRoleResponse WebDriverConnection::get_comp
}
// 12.5.1 Element Click, https://w3c.github.io/webdriver/#element-click
Messages::WebDriverClient::ClickResponse WebDriverConnection::click(DeprecatedString const& element_id)
Messages::WebDriverClient::ElementClickResponse WebDriverConnection::element_click(DeprecatedString const& element_id)
{
// 1. If the current browsing context is no longer open, return error with error code no such window.
TRY(ensure_open_top_level_browsing_context());