Skip to content

Commit

Permalink
Improve error message when missing chromedriver (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye authored Jun 11, 2022
1 parent d01eeab commit 51602fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/gentest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ async fn main() {

info!("starting webdriver instance");
let webdriver_url = "http://localhost:4444";
let mut webdriver_handle = Command::new("chromedriver").arg("--port=4444").spawn().unwrap();
let mut webdriver_handle = Command::new("chromedriver")
.arg("--port=4444")
.spawn()
.expect("ChromeDriver not found: Make sure you have it installed and added to your PATH.");

// this is silly, but it works
std::thread::sleep(std::time::Duration::from_secs(1));
Expand Down

0 comments on commit 51602fb

Please sign in to comment.