mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
WebDriver+Browser: Implement GET /session/{id}/window/rect
This commit is contained in:
parent
7561308af1
commit
dac91c5790
8 changed files with 49 additions and 1 deletions
|
@ -71,6 +71,14 @@ void WebDriverConnection::forward()
|
|||
browser_window->active_tab().go_forward();
|
||||
}
|
||||
|
||||
Messages::WebDriverSessionClient::GetWindowRectResponse WebDriverConnection::get_window_rect()
|
||||
{
|
||||
dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: get_window_rect");
|
||||
if (auto browser_window = m_browser_window.strong_ref())
|
||||
return { browser_window->rect() };
|
||||
return { {} };
|
||||
}
|
||||
|
||||
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