[−][src]Struct thirtyfour::common::capabilities::firefox::FirefoxCapabilities
Implementations
impl FirefoxCapabilities
[src]
pub fn new() -> Self
[src]
pub fn add_firefox_option<T>(
&mut self,
key: &str,
value: T
) -> WebDriverResult<()> where
T: Serialize,
[src]
&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.
pub fn set_logging_prefs(
&mut self,
component: String,
log_level: LoggingPrefsLogLevel
)
[src]
&mut self,
component: String,
log_level: LoggingPrefsLogLevel
)
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) -> WebDriverResult<()>
[src]
Set the geckodriver
log level.
pub fn set_firefox_binary(&mut self, path: &Path) -> WebDriverResult<()>
[src]
Set the path to the firefox binary.
pub fn set_page_load_strategy(
&mut self,
strategy: PageLoadStrategy
) -> WebDriverResult<()>
[src]
&mut self,
strategy: PageLoadStrategy
) -> WebDriverResult<()>
Set the page load strategy to use.
Valid values are: normal
(the default)
pub fn set_profile(&mut self, profile: FirefoxProfile) -> WebDriverResult<()>
[src]
Set the firefox profile settings to use.
pub fn add_firefox_arg(&mut self, arg: &str) -> WebDriverResult<()>
[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) -> WebDriverResult<()>
[src]
Set the browser to run headless.
Trait Implementations
impl Capabilities for FirefoxCapabilities
[src]
fn get(&self) -> &Value
[src]
fn get_mut(&mut self) -> &mut Value
[src]
fn add<T>(&mut self, key: &str, value: T) -> WebDriverResult<()> where
T: Serialize,
[src]
T: Serialize,
fn add_subkey<T>(
&mut self,
key: &str,
subkey: &str,
value: T
) -> WebDriverResult<()> where
T: Serialize,
[src]
&mut self,
key: &str,
subkey: &str,
value: T
) -> WebDriverResult<()> where
T: Serialize,
fn update(&mut self, value: Value)
[src]
fn set_version(&mut self, version: &str) -> WebDriverResult<()>
[src]
fn set_platform(&mut self, platform: &str) -> WebDriverResult<()>
[src]
fn set_javascript_enabled(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_database_enabled(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_location_context_enabled(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_application_cache_enabled(
&mut self,
enabled: bool
) -> WebDriverResult<()>
[src]
&mut self,
enabled: bool
) -> WebDriverResult<()>
fn set_browser_connection_enabled(
&mut self,
enabled: bool
) -> WebDriverResult<()>
[src]
&mut self,
enabled: bool
) -> WebDriverResult<()>
fn set_web_storage_enabled(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn accept_ssl_certs(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_rotatable(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_native_events(&mut self, enabled: bool) -> WebDriverResult<()>
[src]
fn set_proxy(&mut self, proxy: Proxy) -> WebDriverResult<()>
[src]
fn set_unexpected_alert_behaviour(
&mut self,
behaviour: AlertBehaviour
) -> WebDriverResult<()>
[src]
&mut self,
behaviour: AlertBehaviour
) -> WebDriverResult<()>
fn set_element_scroll_behaviour(
&mut self,
behaviour: ScrollBehaviour
) -> WebDriverResult<()>
[src]
&mut self,
behaviour: ScrollBehaviour
) -> WebDriverResult<()>
fn handles_alerts(&self) -> Option<bool>
[src]
fn css_selectors_enabled(&self) -> Option<bool>
[src]
impl Clone for FirefoxCapabilities
[src]
fn clone(&self) -> FirefoxCapabilities
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FirefoxCapabilities
[src]
impl Default for FirefoxCapabilities
[src]
impl Serialize for FirefoxCapabilities
[src]
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
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,