Skip to main content

given

Attribute Macro given 

Source
#[given]
Expand description

Register a Given step definition.

#[given("I navigate to {string}")]
async fn navigate(world: &mut BrowserWorld, url: String) {
    world.page().goto(&url, None).await.map_err(|e| step_err!("{e}"))?;
}