pub trait CapabilitiesMatching {
    // Required method
    fn match_browser<T: BrowserCapabilities>(
        &self,
        browser_capabilities: &mut T
    ) -> WebDriverResult<Option<Capabilities>>;
}
Expand description

Trait to abstract over various version of the new session parameters

This trait is expected to be implemented on objects holding the capabilities from a new session command.

Required Methods§

source

fn match_browser<T: BrowserCapabilities>( &self, browser_capabilities: &mut T ) -> WebDriverResult<Option<Capabilities>>

Match the BrowserCapabilities against some candidate capabilites

Takes a BrowserCapabilites object and returns a set of capabilites that are valid for that browser, if any, or None if there are no matching capabilities.

Implementors§