mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibWeb+WebContent: Convert WebDriver to choose a navigable AO
Also use the TraversableNavigable's window_handle instead of the BrowsingContext's.
This commit is contained in:
parent
713698d2ca
commit
3aee787539
4 changed files with 18 additions and 11 deletions
|
@ -77,12 +77,12 @@ PageClient const& ConnectionFromClient::page(u64 index) const
|
|||
|
||||
Messages::WebContentServer::GetWindowHandleResponse ConnectionFromClient::get_window_handle(u64 page_id)
|
||||
{
|
||||
return page(page_id).page().top_level_browsing_context().window_handle();
|
||||
return page(page_id).page().top_level_traversable()->window_handle();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_window_handle(u64 page_id, String const& handle)
|
||||
{
|
||||
page(page_id).page().top_level_browsing_context().set_window_handle(handle);
|
||||
page(page_id).page().top_level_traversable()->set_window_handle(handle);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::connect_to_webdriver(u64 page_id, ByteString const& webdriver_ipc_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue