accidentally removed the headless arg

This commit is contained in:
Sebastian Hugentobler 2024-10-02 07:29:54 +02:00
parent 4588d5b434
commit 7eea06d59b
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -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())