From 0300596d969c6100ebca3e488458a1edcbcc5ee2 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 10 Oct 2020 21:13:23 +0200 Subject: [PATCH] Just use port 4444 for Gecko Driver; don't pass the binary --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 662e53d..02fecc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,7 @@ use tokio::sync::oneshot::Receiver; use tokio::time::delay_for; /// The port used by the Gecko Driver -const GECKO_DRIVER_PORT: u16 = 18019; +const GECKO_DRIVER_PORT: u16 = 4444; /// The interval between data polls /// @@ -39,8 +39,7 @@ impl GeckoDriver { pub fn spawn(port: u16) -> Result { // This is taken from the webdriver-client crate. let child = Command::new("geckodriver") - .arg("-b") - .arg("firefox") + // .arg("-v") .arg("--port") .arg(format!("{}", port)) .stdin(Stdio::null())