1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

WebDriver: Implement POST /session/{id}/forward endpoint

This commit is contained in:
Moustafa Raafat 2022-10-15 18:18:35 +01:00 committed by Linus Groh
parent 9132656856
commit a4fa604bde
7 changed files with 46 additions and 0 deletions

View file

@ -60,4 +60,11 @@ void WebDriverConnection::back()
browser_window->active_tab().go_back();
}
void WebDriverConnection::forward()
{
dbgln("WebDriverConnection: forward");
if (auto browser_window = m_browser_window.strong_ref())
browser_window->active_tab().go_forward();
}
}