lib/WebDriverOptions.php
public function getCookies()
    {
        $cookieArrays = $this->executor->execute(DriverCommand::GET_ALL_COOKIES);
        $cookies = [];

        foreach ($cookieArrays as $cookieArray) {
            $cookies[] = Cookie::createFromArray($cookieArray);
        }

        return $cookies;
    }
public function getCookies()
    {
        $cookieArrays = $this->executor->execute(DriverCommand::GET_ALL_COOKIES);
        $cookies = [];

        foreach ($cookieArrays as $cookieArray) {
            $cookies[] = Cookie::createFromArray($cookieArray);
        }

        return $cookies;
    }
public function getCookies ( ) { $ cookieArrays = $ this -> executor -> execute ( DriverCommand :: GET_ALL_COOKIES ) ; $ cookies = [ ] ; foreach ( $ cookieArrays as $ cookieArray ) { $ cookies [ ] = Cookie :: createFromArray ( $ cookieArray ) ; } return $ cookies ; }
Get all the cookies for the current domain.

@return Cookie[] The array of cookies presented.
Get all the cookies for the current domain .