mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
headless-browser: Allow specifying the path to the saved screenshot
This is to help make creating Screenshot tests a bit easier.
This commit is contained in:
parent
d7cd8f0fc7
commit
141afbc63d
Notes:
github-actions[bot]
2025-05-20 14:49:24 +00:00
Author: https://github.com/trflynn89
Commit: 141afbc63d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4824
3 changed files with 8 additions and 9 deletions
|
@ -32,6 +32,7 @@ Application::~Application()
|
|||
void Application::create_platform_arguments(Core::ArgsParser& args_parser)
|
||||
{
|
||||
args_parser.add_option(screenshot_timeout, "Take a screenshot after [n] seconds (default: 1)", "screenshot", 's', "n");
|
||||
args_parser.add_option(screenshot_path, "Path the save the screenshot (default: 'output.png')", "screenshot-path", 'p', "path");
|
||||
args_parser.add_option(dump_layout_tree, "Dump layout tree and exit", "dump-layout-tree", 'd');
|
||||
args_parser.add_option(dump_text, "Dump text and exit", "dump-text", 'T');
|
||||
args_parser.add_option(test_concurrency, "Maximum number of tests to run at once", "test-concurrency", 'j', "jobs");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue