lib/WebDriverOptions.php
public function getCookieNamed($name)
    {
        $cookies = $this->getCookies();
        foreach ($cookies as $cookie) {
            if ($cookie['name'] === $name) {
                return $cookie;
            }
        }

        return null;
    }
public function getCookieNamed($name)
    {
        $cookies = $this->getCookies();
        foreach ($cookies as $cookie) {
            if ($cookie['name'] === $name) {
                return $cookie;
            }
        }

        return null;
    }
public function getCookieNamed ( $ name ) { $ cookies = $ this -> getCookies ( ) ; foreach ( $ cookies as $ cookie ) { if ( $ cookie [ 'name' ] === $ name ) { return $ cookie ; } } return null ; }
Get the cookie with a given name.

@param string $name
@return Cookie|null The cookie, or null if no cookie with the given name is presented.
Get the cookie with a given name .