From 7eea06d59b1663892b5bc1dcec25784d370a5548 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 2 Oct 2024 07:29:54 +0200 Subject: [PATCH] accidentally removed the headless arg --- cookie/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookie/src/lib.rs b/cookie/src/lib.rs index 3b2ec27..c7054c6 100644 --- a/cookie/src/lib.rs +++ b/cookie/src/lib.rs @@ -22,7 +22,7 @@ pub async fn run(args: Config, pw: &str) -> Result<()> { let (stop_tx, stop_rx) = oneshot::channel(); let driver_handle = geckodriver::run(stop_rx).await?; - let driver_args = json!({ "moz:firefoxOptions": {"args": []} }); + let driver_args = json!({ "moz:firefoxOptions": {"args": ["-headless"]} }); let client = ClientBuilder::native() .capabilities(driver_args.as_object().unwrap().clone())