1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

Browser+WebContent+WebDriver: Move Get Title to WebContent

This commit is contained in:
Timothy Flynn 2022-11-11 13:50:43 -05:00 committed by Linus Groh
parent 7f142745e2
commit 2c9549cb76
9 changed files with 18 additions and 27 deletions

View file

@ -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