rustenium-macros
Convenience macros for Rustenium element selection.
This crate provides ergonomic macros for creating element locators:
css!()- Create CSS selector locatorsxpath!()- Create XPath selector locators
Usage
Add to your Cargo.toml:
[]
= { = "0.1", = ["macros"] }
Then use in your code:
use css;
use xpath;
// CSS selector
let button = browser.find_element.await?;
// XPath selector
let header = browser.find_element.await?;
Part of Rustenium
This is an optional component of the Rustenium project. See the main Rustenium documentation for complete usage examples.
License
MIT