mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
WebDriver: Do not ignore the result of closing a session
This commit is contained in:
parent
5c117cdcec
commit
0ae015e266
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ Web::WebDriver::Response Session::close_window()
|
|||
|
||||
// 4. If there are no more open top-level browsing contexts, then close the session.
|
||||
if (m_windows.is_empty())
|
||||
stop();
|
||||
TRY(stop());
|
||||
|
||||
// 5. Return the result of running the remote end steps for the Get Window Handles command.
|
||||
return get_window_handles();
|
||||
|
|
Loading…
Add table
Reference in a new issue