rustenium-macros 0.1.1

Convenience macros for Rustenium (css! and xpath! selectors)
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 11.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.99 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 16s Average build duration of successful builds.
  • all releases: 1m 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • dashn9/rustenium
    4 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dashn9

rustenium-macros

Convenience macros for Rustenium element selection.

This crate provides ergonomic macros for creating element locators:

  • css!() - Create CSS selector locators
  • xpath!() - Create XPath selector locators

Usage

Add to your Cargo.toml:

[dependencies]

rustenium = { version = "0.1", features = ["macros"] }

Then use in your code:

use rustenium::css;
use rustenium::xpath;

// CSS selector
let button = browser.find_element(css!("button.submit")).await?;

// XPath selector
let header = browser.find_element(xpath!("//h1[@class='title']")).await?;

Part of Rustenium

This is an optional component of the Rustenium project. See the main Rustenium documentation for complete usage examples.

License

MIT