[][src]Struct thirtyfour_sync::FirefoxCapabilities

pub struct FirefoxCapabilities { /* fields omitted */ }

Re-export common types.

Implementations

impl FirefoxCapabilities[src]

pub fn new() -> FirefoxCapabilities[src]

pub fn add_firefox_option<T>(
    &mut self,
    key: &str,
    value: T
) -> Result<(), WebDriverError> where
    T: Serialize
[src]

Add the specified firefox option. This is a helper method for the various specific option methods.

pub fn set_logging_prefs(
    &mut self,
    component: String,
    log_level: LoggingPrefsLogLevel
)
[src]

Set the selenium logging preferences. To set the geckodriver log level, use set_log_level() instead.

pub fn set_log_level(
    &mut self,
    log_level: LogLevel
) -> Result<(), WebDriverError>
[src]

Set the geckodriver log level.

pub fn set_firefox_binary(&mut self, path: &Path) -> Result<(), WebDriverError>[src]

Set the path to the firefox binary.

pub fn set_page_load_strategy(
    &mut self,
    strategy: PageLoadStrategy
) -> Result<(), WebDriverError>
[src]

Set the page load strategy to use. Valid values are: normal (the default)

pub fn set_profile(
    &mut self,
    profile: FirefoxProfile
) -> Result<(), WebDriverError>
[src]

Set the firefox profile settings to use.

pub fn add_firefox_arg(&mut self, arg: &str) -> Result<(), WebDriverError>[src]

Add the specified command-line argument to geckodriver.

pub fn get_args(&self) -> Vec<String>[src]

Get the current list of command-line arguments to geckodriver as a vec.

pub fn set_headless(&mut self) -> Result<(), WebDriverError>[src]

Set the browser to run headless.

Trait Implementations

impl Capabilities for FirefoxCapabilities[src]

impl Clone for FirefoxCapabilities[src]

impl Debug for FirefoxCapabilities[src]

impl Default for FirefoxCapabilities[src]

impl Serialize for FirefoxCapabilities[src]

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> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.