1
Fork 0
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:
Timothy Flynn 2023-03-20 19:53:15 -04:00 committed by Linus Groh
parent f8b6369c23
commit a96ba912b3
4 changed files with 15 additions and 2 deletions

View file

@ -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 {};