mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Browser+WebContent+WebDriver: Move Is Element Selected to WebContent
This commit is contained in:
parent
560da56a1d
commit
04ea3992e9
16 changed files with 40 additions and 76 deletions
|
@ -654,8 +654,7 @@ Web::WebDriver::Response Client::handle_is_element_selected(Vector<StringView> c
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling GET /session/<session_id>/element/<element_id>/selected");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->is_element_selected(parameters[1]));
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().is_element_selected(parameters[1]);
|
||||
}
|
||||
|
||||
// 12.4.2 Get Element Attribute, https://w3c.github.io/webdriver/#dfn-get-element-attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue