Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 516 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 516 Bytes

Running geckodriver

geckodriver -p 4444
use thirtyfour::prelude::*;

let caps = DesiredCapabilities::firefox();
// NOTE: this assumes you have a WebDriver compatible server running
//       at http://localhost:4444
//       e.g. `geckodriver -p 4444`
let driver = WebDriver::new("http://localhost:4444", caps).await?;
driver.goto("https://www.rust-lang.org/").await?;
// Always remember to close the session.
driver.quit().await?;

Kill the port

fuser -n tcp -k 4444