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

headless-browser: Add a mode for being controlled by WebDriver

This adds command line flags for WebDriver to pass its IPC socket path
(if running on Serenity) or its FD passing socket (if running elsewhere)
for the headless-browser to connect to.
This commit is contained in:
Timothy Flynn 2022-11-21 20:03:45 -05:00 committed by Linus Groh
parent 0135a2ab5b
commit e840d27d8e
3 changed files with 74 additions and 27 deletions

View file

@ -460,8 +460,8 @@ if (BUILD_LAGOM)
target_link_libraries(gml-format LibCore LibGUI LibMain)
if (ENABLE_LAGOM_LIBWEB)
add_executable(headless-browser ../../Userland/Utilities/headless-browser.cpp)
target_link_libraries(headless-browser LibWeb LibWebSocket LibCrypto LibGemini LibHTTP LibJS LibGfx LibMain LibTLS)
add_executable(headless-browser ../../Userland/Utilities/headless-browser.cpp ../../Userland/Services/WebContent/WebDriverConnection.cpp)
target_link_libraries(headless-browser LibWeb LibWebSocket LibCrypto LibGemini LibHTTP LibJS LibGfx LibMain LibTLS LibIPC LibJS)
endif()
add_executable(js ../../Userland/Utilities/js.cpp)