Struct thirtyfour::common::capabilities::firefox::FirefoxCapabilities
source · [−]pub struct FirefoxCapabilities { /* private fields */ }
Implementations
sourceimpl FirefoxCapabilities
impl FirefoxCapabilities
pub fn new() -> Self
sourcepub fn add_firefox_option<T>(
&mut self,
key: &str,
value: T
) -> WebDriverResult<()> where
T: Serialize,
pub fn add_firefox_option<T>(
&mut self,
key: &str,
value: T
) -> WebDriverResult<()> where
T: Serialize,
Add the specified firefox option. This is a helper method for the various specific option methods.
sourcepub fn set_logging_prefs(
&mut self,
component: String,
log_level: LoggingPrefsLogLevel
)
pub fn set_logging_prefs(
&mut self,
component: String,
log_level: LoggingPrefsLogLevel
)
Set the selenium logging preferences. To set the geckodriver
log level,
use set_log_level()
instead.
sourcepub fn set_log_level(&mut self, log_level: LogLevel) -> WebDriverResult<()>
pub fn set_log_level(&mut self, log_level: LogLevel) -> WebDriverResult<()>
Set the geckodriver
log level.
sourcepub fn set_firefox_binary(&mut self, path: &Path) -> WebDriverResult<()>
pub fn set_firefox_binary(&mut self, path: &Path) -> WebDriverResult<()>
Set the path to the firefox binary.
sourcepub fn set_page_load_strategy(
&mut self,
strategy: PageLoadStrategy
) -> WebDriverResult<()>
pub fn set_page_load_strategy(
&mut self,
strategy: PageLoadStrategy
) -> WebDriverResult<()>
Set the page load strategy to use.
Valid values are: normal
(the default)
sourcepub fn set_preferences(
&mut self,
preferences: FirefoxPreferences
) -> WebDriverResult<()>
pub fn set_preferences(
&mut self,
preferences: FirefoxPreferences
) -> WebDriverResult<()>
Set the firefox preferences to use.
sourcepub fn add_firefox_arg(&mut self, arg: &str) -> WebDriverResult<()>
pub fn add_firefox_arg(&mut self, arg: &str) -> WebDriverResult<()>
Add the specified command-line argument to geckodriver
.
sourcepub fn get_firefox_option<T>(&self, key: &str) -> T where
T: DeserializeOwned + Default,
pub fn get_firefox_option<T>(&self, key: &str) -> T where
T: DeserializeOwned + Default,
Get the specified Firefox option.
sourcepub fn get_args(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_args(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get the current list of command-line arguments to geckodriver
as a vec.
sourcepub fn set_headless(&mut self) -> WebDriverResult<()>
pub fn set_headless(&mut self) -> WebDriverResult<()>
Set the browser to run headless.
Trait Implementations
sourceimpl Clone for FirefoxCapabilities
impl Clone for FirefoxCapabilities
sourcefn clone(&self) -> FirefoxCapabilities
fn clone(&self) -> FirefoxCapabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FirefoxCapabilities
impl Debug for FirefoxCapabilities
sourceimpl Default for FirefoxCapabilities
impl Default for FirefoxCapabilities
sourceimpl Deref for FirefoxCapabilities
impl Deref for FirefoxCapabilities
sourceimpl DerefMut for FirefoxCapabilities
impl DerefMut for FirefoxCapabilities
sourceimpl From<FirefoxCapabilities> for Capabilities
impl From<FirefoxCapabilities> for Capabilities
sourcefn from(caps: FirefoxCapabilities) -> Capabilities
fn from(caps: FirefoxCapabilities) -> Capabilities
Converts to this type from the input type.
sourceimpl Serialize for FirefoxCapabilities
impl Serialize for FirefoxCapabilities
Auto Trait Implementations
impl RefUnwindSafe for FirefoxCapabilities
impl Send for FirefoxCapabilities
impl Sync for FirefoxCapabilities
impl Unpin for FirefoxCapabilities
impl UnwindSafe for FirefoxCapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more