Module profile

Module profile 

Source
Expand description

Firefox profile management. Firefox profile management and configuration.

This module handles the creation and configuration of Firefox profiles, including:

  • Creating temporary profiles with automatic cleanup
  • Using existing profile directories
  • Writing preferences (user.js)
  • Installing extensions

§Example

use firefox_webdriver::driver::profile::{Profile, ExtensionSource};

let profile = Profile::new_temp()?;

// Write default preferences
let prefs = Profile::default_prefs();
profile.write_prefs(&prefs)?;

// Install extension
let ext = ExtensionSource::unpacked("./extension");
profile.install_extension(&ext)?;

Re-exports§

pub use extensions::ExtensionSource;
pub use preferences::FirefoxPreference;
pub use preferences::PreferenceValue;

Modules§

extensions
Extension installation and management. Firefox extension installation and management.
preferences
Firefox preference definitions and serialization. Firefox preference serialization for user.js.

Structs§

Profile
A Firefox profile directory.