mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
WebDriver+Browser: Implement POST /session/{id}/window/maximize
This commit is contained in:
parent
174248678e
commit
89b2ff72f7
7 changed files with 43 additions and 0 deletions
|
@ -102,6 +102,13 @@ void WebDriverConnection::set_window_position(Gfx::IntPoint const& position)
|
|||
browser_window->move_to(position);
|
||||
}
|
||||
|
||||
void WebDriverConnection::maximize_window()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: maximize_window");
|
||||
if (auto browser_window = m_browser_window.strong_ref())
|
||||
browser_window->set_maximized(true);
|
||||
}
|
||||
|
||||
Messages::WebDriverSessionClient::GetAllCookiesResponse WebDriverConnection::get_all_cookies()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_cookies");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue