1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:17:45 +00:00

Browser: Add a basic WebDriver API

This adds a new option "--webdriver" that opens a local unix socket
in /tmp/browser_{pid} which the WebDriver server can use to send
commands to the Browser instance.

Co-authored-by: Florent Castelli <florent.castelli@gmail.com>
This commit is contained in:
Sam Atkins 2022-10-12 10:50:33 +01:00 committed by Linus Groh
parent ec9c11667f
commit 8c0f1da9f7
6 changed files with 129 additions and 1 deletions

View file

@ -5,6 +5,9 @@ serenity_component(
DEPENDS BrowserSettings ImageDecoder RequestServer WebContent WebSocket
)
compile_ipc(WebDriverSessionServer.ipc WebDriverSessionServerEndpoint.h)
compile_ipc(WebDriverSessionClient.ipc WebDriverSessionClientEndpoint.h)
compile_gml(BrowserWindow.gml BrowserWindowGML.h browser_window_gml)
compile_gml(EditBookmark.gml EditBookmarkGML.h edit_bookmark_gml)
compile_gml(StorageWidget.gml StorageWidgetGML.h storage_widget_gml)
@ -24,6 +27,7 @@ set(SOURCES
StorageModel.cpp
StorageWidget.cpp
Tab.cpp
WebDriverConnection.cpp
WindowActions.cpp
main.cpp
)
@ -33,6 +37,8 @@ set(GENERATED_SOURCES
EditBookmarkGML.h
StorageWidgetGML.h
TabGML.h
WebDriverSessionClientEndpoint.h
WebDriverSessionServerEndpoint.h
)
serenity_app(Browser ICON app-browser)