From ee5a471b972494098edd41687821d672e99c9976 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 9 Sep 2021 10:59:41 +0200 Subject: feat: add headless mode --- src/browser/web_browser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/browser') diff --git a/src/browser/web_browser.rs b/src/browser/web_browser.rs index daeab5f..8ba21d6 100644 --- a/src/browser/web_browser.rs +++ b/src/browser/web_browser.rs @@ -28,6 +28,7 @@ impl Browser { let mut caps = FirefoxCapabilities::new(); let _ = caps.set_preferences(prefs); + let _ = caps.set_headless(); Self { driver: Some(WebDriver::new(driver_url, caps).await.unwrap()), -- cgit v1.2.3-18-g5258