mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
WebContent+WebDriver: Move window commands handling back to WebDriver
With current architecture every window has its own WebContent process
and there is one WebDriver process that is responsible for talking to
all opened windows. It thus make sense to manage open windows from
WebDriver process instead of WebContent process that is not supposed
to know about all other opened WebContent processes.
This mostly reverts 826d5f8f9a
but also
adds `web_content_connection` to window structure and window id
generation (currently out of spec).
With these changes `get_window_handles`, `switch_to_window` and
`close_window` start to actually switch, close and returned handles
of currently opened windows.
This commit is contained in:
parent
d036862f2b
commit
0905fd57e4
6 changed files with 99 additions and 91 deletions
|
@ -15,10 +15,7 @@ endpoint WebDriverClient {
|
|||
forward() => (Web::WebDriver::Response response)
|
||||
refresh() => (Web::WebDriver::Response response)
|
||||
get_title() => (Web::WebDriver::Response response)
|
||||
get_window_handle() => (Web::WebDriver::Response response)
|
||||
close_window() => (Web::WebDriver::Response response)
|
||||
switch_to_window(JsonValue payload) => (Web::WebDriver::Response response)
|
||||
get_window_handles() => (Web::WebDriver::Response response)
|
||||
get_window_rect() => (Web::WebDriver::Response response)
|
||||
set_window_rect(JsonValue payload) => (Web::WebDriver::Response response)
|
||||
maximize_window() => (Web::WebDriver::Response response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue