fn deref(&self) -> &T4d { &self.w.su.driver }
}
+impl<'g> WindowGuard<'g> {
+ #[throws(AE)]
+ fn screenshot(&mut self, slug: &str) {
+ screenshot(&self.w.su.driver, &mut self.w.su.screenshot_count, slug)?
+ }
+}
+
#[throws(AE)]
fn screenshot(driver: &T4d, count: &mut ScreenShotCount, slug: &str) {
let path = format!("{:03}{}.png", count, slug);
}
}
-impl Setup {
- #[throws(AE)]
- fn screenshot(&mut self, slug: &str) {
- screenshot(&self.driver, &mut self.screenshot_count, slug)?
- }
-}
-
impl Drop for Setup {
fn drop(&mut self) {
+ /*
self.screenshot("final")
.context("in Setup::drop")
.just_warn();
+xxx
+*/
+
}
}
fn main(){
let su = setup(module_path!()).always_context("setup")?;
+ let w1 = su.new_window("alice")?;
+ w1.get("/?zonk")?;
+ w1.screenshot("test alice")?;
+
debug!("ok");
info!("hi! {:#?}", &su.ds);
}