pub use anyhow::{anyhow, Context};
pub use fehler::{throw, throws};
pub use structopt::StructOpt;
+pub use thirtyfour_sync as t4;
pub use void::Void;
+pub use t4::WebDriverCommands;
+
pub use std::env;
pub use std::fs;
pub use std::io::{BufRead, BufReader, ErrorKind, Write};
}
}
+#[throws(AE)]
+fn prepare_thirtyfour() {
+ let caps = t4::DesiredCapabilities::firefox();
+ let driver = t4::WebDriver::new("http://localhost:4444", &caps)
+ .context("create 34 WebDriver")?;
+ driver.get("http://localhost:8000")
+ .context("dummy navigation")?;
+}
+
#[throws(AE)]
pub fn setup() -> Setup {
let current_exe : String = env::current_exe()
prepare_xserver(&cln).context("setup X server")?;
prepare_geckodriver(&cln).context("setup webdriver serverr")?;
+ prepare_thirtyfour().context("prepare web session")?;
Setup {
tmp,