Trait webdriver::capabilities::CapabilitiesMatching[][src]

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

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

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