mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
WebDriver+Browser: Implement POST /session/{id}/window/minimize
This commit is contained in:
parent
0d5209cee6
commit
11d0489fa3
7 changed files with 40 additions and 0 deletions
|
@ -109,6 +109,13 @@ void WebDriverConnection::maximize_window()
|
|||
browser_window->set_maximized(true);
|
||||
}
|
||||
|
||||
void WebDriverConnection::minimize_window()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: minimize_window");
|
||||
if (auto browser_window = m_browser_window.strong_ref())
|
||||
browser_window->set_minimized(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