[][src]Struct selenium_webdriver::FirefoxOptions

pub struct FirefoxOptions { /* fields omitted */ }

Utility struct to adjust the firefox browser session

For more info on FF Options please check https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions

Implementations

impl FirefoxOptions[src]

pub fn new() -> Self[src]

pub fn add_binary(&mut self, path: &str) -> &mut Self[src]

Absolute path to the custom Firefox binary to use.

pub fn add_args(&mut self, args: Vec<&str>) -> &mut Self[src]

More info on the FF args here: https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options?redirectlocale=en-US&redirectslug=Command_Line_Options

pub fn add_prefs(&mut self, prefs: &str) -> &mut Self[src]

As there are various prefs types, this methods takes a string representation of json.

Examples

let mut ff = FirefoxOptions::new();
let prefs = r#"{dom.ipc.processCount": 8,"javascript.options.showInConsole": false}"#;
ff.add_prefs(prefs);

pub fn add_log(&mut self, log_level: LogLevel) -> &mut Self[src]

Option to increase the logging verbosity of geckodriver

pub fn add_env(&mut self, env_vars: HashMap<&str, &str>) -> &mut Self[src]

Map of environment variable name to environment variable value

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.