mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Browser+WebContent+WebDriver: Move Get Title to WebContent
This commit is contained in:
parent
7f142745e2
commit
2c9549cb76
9 changed files with 18 additions and 27 deletions
|
@ -539,8 +539,7 @@ Web::WebDriver::Response Client::handle_get_title(Vector<StringView> const& para
|
|||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Handling GET /session/<session_id>/title");
|
||||
auto* session = TRY(find_session_with_id(parameters[0]));
|
||||
auto result = TRY(session->get_title());
|
||||
return make_json_value(result);
|
||||
return session->web_content_connection().get_title();
|
||||
}
|
||||
|
||||
// 11.1 Get Window Handle, https://w3c.github.io/webdriver/#get-window-handle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue