Skip to main content

when

Attribute Macro when 

Source
#[when]
Expand description

Register a When step definition.

#[when("I click {string}")]
async fn click(world: &mut BrowserWorld, selector: String) {
    world.page().locator(&selector, None).click(None).await.map_err(|e| step_err!("{e}"))?;
}