[][src]Struct webdriver_client::messages::NewSessionCmd

pub struct NewSessionCmd { /* fields omitted */ }

The arguments to create a new session, including the capabilities as defined by the WebDriver specification.

Methods

impl NewSessionCmd[src]

pub fn always_match(&mut self, key: &str, value: JsonValue) -> &mut Self[src]

Merges a new alwaysMatch capability with the given key and value into the new session's capabilities.

For the merging rules, see the documentation of webdriver_client::util::merge_json.

pub fn reset_always_match(&mut self) -> &mut Self[src]

Resets the alwaysMatch capabilities to an empty JSON object.

Trait Implementations

impl Default for NewSessionCmd[src]

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

impl<T> Typeable for T where
    T: Any