mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:47:45 +00:00
WebDriver: Implement POST /session/{id}/forward endpoint
This commit is contained in:
parent
9132656856
commit
a4fa604bde
7 changed files with 46 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
virtual Messages::WebDriverSessionClient::GetTitleResponse get_title() override;
|
||||
virtual void refresh() override;
|
||||
virtual void back() override;
|
||||
virtual void forward() override;
|
||||
|
||||
private:
|
||||
WebDriverConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, NonnullRefPtr<BrowserWindow> browser_window);
|
||||
|
|
|
@ -8,4 +8,5 @@ endpoint WebDriverSessionClient {
|
|||
get_title() => (String title)
|
||||
refresh() =|
|
||||
back() =|
|
||||
forward() =|
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue