Trait augdom::testing::TargetExt [−][src]
pub trait TargetExt {
fn key(&self, key: Key<'_>);
fn event<E>(&self, event: E)
where
E: Event;
fn click(&self) { ... }
fn keyboardln(&self, contents: &str) { ... }
fn keyboard(&self, contents: &str) { ... }
fn enter(&self) { ... }
fn blur(&self) { ... }
}
Expand description
Convenience methods for dispatching events to targets, primarily useful for testing.
Required methods
Provided methods
fn keyboardln(&self, contents: &str)
fn keyboardln(&self, contents: &str)
“Type” the provided text followed by the <Enter>
key.