mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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
|
@ -172,19 +172,6 @@ Web::WebDriver::Response Session::set_timeouts(JsonValue const& payload)
|
|||
return JsonValue {};
|
||||
}
|
||||
|
||||
// 10.6 Get Title, https://w3c.github.io/webdriver/#dfn-get-title
|
||||
Web::WebDriver::Response Session::get_title()
|
||||
{
|
||||
// 1. If the current top-level browsing context is no longer open, return error with error code no such window.
|
||||
TRY(check_for_open_top_level_browsing_context_or_return_error());
|
||||
|
||||
// FIXME: 2. Handle any user prompts and return its value if it is an error.
|
||||
|
||||
// 3. Let title be the initial value of the title IDL attribute of the current top-level browsing context's active document.
|
||||
// 4. Return success with data title.
|
||||
return JsonValue(m_browser_connection->get_title());
|
||||
}
|
||||
|
||||
// 11.1 Get Window Handle, https://w3c.github.io/webdriver/#get-window-handle
|
||||
Web::WebDriver::Response Session::get_window_handle()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue