Just use port 4444 for Gecko Driver; don't pass the binary

This commit is contained in:
Paul van Tilburg 2020-10-10 21:13:23 +02:00
parent 43479fe13e
commit 1498c4f671
1 changed files with 2 additions and 3 deletions

View File

@ -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<Self> {
// 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())