Skip to main content

Crate playwright_rs_macros

Crate playwright_rs_macros 

Source
Expand description

Compile-time-validated selector macros for [playwright-rs].

Most users get this crate transitively through playwright-rs (the macros feature is on by default) and never need to depend on it directly:

use playwright_rs::locator;

let l = page.locator(locator!("#submit")).await;

See the playwright-rs crate root for the broader Observability / macros story.

Macros§

locator
Compile-time-validated Playwright selector. Expands to a &'static str containing the same selector verbatim, with the validation a one-time compile-time check.