pub struct Harness { /* private fields */ }Expand description
Test harness for interacting with Presentar widgets.
Implementations§
Source§impl Harness
impl Harness
Sourcepub fn click(&mut self, selector: &str) -> &mut Self
pub fn click(&mut self, selector: &str) -> &mut Self
Simulate a click on a widget matching the selector.
Sourcepub fn type_text(&mut self, selector: &str, text: &str) -> &mut Self
pub fn type_text(&mut self, selector: &str, text: &str) -> &mut Self
Simulate typing text into a widget.
Sourcepub fn query(&self, selector: &str) -> Option<&dyn Widget>
pub fn query(&self, selector: &str) -> Option<&dyn Widget>
Query for a widget matching the selector.
Sourcepub fn query_all(&self, selector: &str) -> Vec<&dyn Widget>
pub fn query_all(&self, selector: &str) -> Vec<&dyn Widget>
Query for all widgets matching the selector.