Registry / http-client / fantoccini

fantoccini

JSON →
library0.22.1rscratesunverified

High-level API for programmatically interacting with web pages through WebDriver.

# Cargo.toml [dependencies] fantoccini = "0.22.1"
INSTALL
IMPORT
SIG · FANTOCCINI
F
fantoccini
http-clientrustv0.22.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use fantoccini::Client;

Navigates to a web page and retrieves its title using WebDriver.

use fantoccini::{Client, Locator}; #[tokio::main] async fn main() -> Result<(), fantoccini::error::CmdError> { let mut client = Client::new("http://localhost:4444").await?; client.goto("https://example.com").await?; let title = client.title().await?; println!("Page title: {}", title); client.close().await?; Ok(()) }
Debug
Known issues
gotchaRequires a running WebDriver server (e.g., geckodriver, chromedriver) to connect to.
fix
Start a WebDriver server before running the application.
affects: >=0.1.0
gotchaAll methods are async and require an async runtime like Tokio.
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=0.1.0
Upgrade
Version history
0.22.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
fantoccini — cargo add fantoccini · libregistry