[−][src]Struct selenium_webdriver::FirefoxOptions
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
impl RefUnwindSafe for FirefoxOptions
impl Send for FirefoxOptions
impl Sync for FirefoxOptions
impl Unpin for FirefoxOptions
impl UnwindSafe for FirefoxOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,