1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Firefox WebDriver driver module.
//!
//! This module provides the main entry point for browser automation.
//!
//! # Components
//!
//! | Type | Description |
//! |------|-------------|
//! | [`Driver`] | Factory for creating browser windows |
//! | [`DriverBuilder`] | Fluent configuration builder |
//! | [`FirefoxOptions`] | Browser launch options |
//! | [`Profile`] | Firefox profile management |
//! | [`ExtensionSource`] | Extension installation source |
//!
//! # Example
//!
//! ```no_run
//! use firefox_webdriver::{Driver, Result};
//!
//! # async fn example() -> Result<()> {
//! let driver = Driver::builder()
//! .binary("/usr/bin/firefox")
//! .extension("./extension")
//! .build()
//! .await?;
//!
//! let window = driver.window().headless().spawn().await?;
//! let tab = window.tab();
//!
//! tab.goto("https://example.com").await?;
//! # Ok(())
//! # }
//! ```
// ============================================================================
// Submodules
// ============================================================================
/// Static assets and HTML templates for driver initialization.
/// Fluent builder pattern for driver configuration.
/// Core driver implementation.
/// Firefox browser options and preferences.
/// Firefox profile management.
// ============================================================================
// Re-exports
// ============================================================================
pub use DriverBuilder;
pub use Driver;
pub use FirefoxOptions;
pub use ;