mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:47:35 +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:
parent
2f3eefe03b
commit
c43db5dae7
7 changed files with 8 additions and 8 deletions
|
@ -544,11 +544,11 @@ Web::WebDriver::Response Client::get_computed_role(Web::WebDriver::Parameters pa
|
|||
|
||||
// 12.5.1 Element Click, https://w3c.github.io/webdriver/#element-click
|
||||
// POST /session/{session id}/element/{element id}/click
|
||||
Web::WebDriver::Response Client::click(Web::WebDriver::Parameters parameters, JsonValue)
|
||||
Web::WebDriver::Response Client::element_click(Web::WebDriver::Parameters parameters, JsonValue)
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling POST /session/<session_id>/element/<element_id>/click");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
return session->web_content_connection().click(parameters[1]);
|
||||
return session->web_content_connection().element_click(parameters[1]);
|
||||
}
|
||||
|
||||
// 13.1 Get Page Source, https://w3c.github.io/webdriver/#dfn-get-page-source
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue