diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-09-09 10:59:41 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-09-09 10:59:41 +0200 |
commit | ee5a471b972494098edd41687821d672e99c9976 (patch) | |
tree | 7df134e11b7a4e6e379ab928fd9499302e11982f | |
parent | 54304c6130b8a97a8c66dedab72541e0405d366f (diff) |
feat: add headless mode
-rw-r--r-- | src/browser/web_browser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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()), |