mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:08:12 +00:00
WebDriver: Activate the browser tab during the Switch To Window command
This commit is contained in:
parent
f8b6369c23
commit
a96ba912b3
4 changed files with 15 additions and 2 deletions
|
@ -144,8 +144,9 @@ Web::WebDriver::Response Session::switch_to_window(StringView handle)
|
|||
else
|
||||
return Web::WebDriver::Error::from_code(Web::WebDriver::ErrorCode::NoSuchWindow, "Window not found");
|
||||
|
||||
// FIXME: 5. Update any implementation-specific state that would result from the user selecting the current
|
||||
// browsing context for interaction, without altering OS-level focus.
|
||||
// 5. Update any implementation-specific state that would result from the user selecting the current
|
||||
// browsing context for interaction, without altering OS-level focus.
|
||||
TRY(web_content_connection().switch_to_window());
|
||||
|
||||
// 6. Return success with data null.
|
||||
return JsonValue {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue