summaryrefslogtreecommitdiff
path: root/src/browser
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-09-09 10:59:41 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-09-09 10:59:41 +0200
commitee5a471b972494098edd41687821d672e99c9976 (patch)
tree7df134e11b7a4e6e379ab928fd9499302e11982f /src/browser
parent54304c6130b8a97a8c66dedab72541e0405d366f (diff)
feat: add headless mode
Diffstat (limited to 'src/browser')
-rw-r--r--src/browser/web_browser.rs1
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()),