[][src]Struct thirtyfour::common::capabilities::chrome::ChromeCapabilities

pub struct ChromeCapabilities { /* fields omitted */ }

Methods

impl ChromeCapabilities[src]

pub fn new() -> Self[src]

Create a new ChromeCapabilities struct.

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

Add the specified chrome option. This is a helper method for add_arg().

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

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

pub fn add_arg(&mut self, arg: &str) -> WebDriverResult<()>[src]

Add the specified command-line argument to chromedriver. The full list of switches can be found here: https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_switches.cc

pub fn set_headless(&mut self) -> WebDriverResult<()>[src]

Set the browser to run headless.

pub fn set_disable_web_security(&mut self) -> WebDriverResult<()>[src]

Disable web security.

Trait Implementations

impl Capabilities for ChromeCapabilities[src]

impl Clone for ChromeCapabilities[src]

impl Debug for ChromeCapabilities[src]

impl Default for ChromeCapabilities[src]

impl Serialize for ChromeCapabilities[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, 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.