mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 12:08:14 +00: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
Add a link
Reference in a new issue