From: Ian Jackson Date: Mon, 28 Dec 2020 17:29:39 +0000 (+0000) Subject: set timeouts X-Git-Tag: otter-0.2.0~116 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7395904fc8eea8d2dfeab43a3d1bd8f9975178df;p=otter.git set timeouts Signed-off-by: Ian Jackson --- diff --git a/wdriver.rs b/wdriver.rs index 9e953793..203f3f42 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -588,6 +588,11 @@ fn prepare_thirtyfour() -> (T4d, ScreenShotCount, Vec) { screenshot(&mut driver, &mut count, "startup")?; driver.get(URL).context("navigate to front page")?; screenshot(&mut driver, &mut count, "front")?; + + let t = Some(5_000 * MS); + driver.set_timeouts(t4::TimeoutConfiguration::new(t,t,t)) + .context("set webdriver timeouts")?; + (driver, count, window_names) }